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
steps:
- name: build
- name: test
commands:
- echo build start
- echo test start
- date
- export PATH=$PATH:/usr/local/go/bin
- cd /root
- rm -rf IPRegion
- git clone https://git.sre.ink/go/IPRegion.git
- cd IPRegion
- make build-linux-arm64
- make test-linux-arm64
- date
- echo build end
- echo test end
- name: package
commands:
- 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:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go mod tidy

Loading…
Cancel
Save