test
continuous-integration/drone/push Build is failing Details

master
dustoair 3 years ago
parent a477d87f25
commit efea820c33

@ -15,18 +15,18 @@ clone:
disable: true disable: true
steps: steps:
- name: build - name: test
commands: commands:
- echo build start - echo test start
- date - date
- export PATH=$PATH:/usr/local/go/bin - export PATH=$PATH:/usr/local/go/bin
- cd /root - cd /root
- rm -rf IPRegion - rm -rf IPRegion
- git clone https://git.sre.ink/go/IPRegion.git - git clone https://git.sre.ink/go/IPRegion.git
- cd IPRegion - cd IPRegion
- make build-linux-arm64 - make test-linux-arm64
- date - date
- echo build end - echo test end
- name: package - name: package
commands: commands:
- echo package start - echo package start

@ -1,4 +1,8 @@
all: build-linux-arm64 all: test-linux-arm64 build-linux-arm64
test-linux-arm64:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go test global/global_test.go
build-linux-arm64: build-linux-arm64:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go mod tidy CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go mod tidy

Loading…
Cancel
Save