Combine to Travis

This commit is contained in:
n0vad3v 2020-05-23 13:50:59 +08:00
parent 6f8d978268
commit acf53d2bdb

View File

@ -2,20 +2,28 @@ language: go
go: go:
- 1.13 - 1.13
env: GO111MODULE=on
arch: arch:
- amd64 - amd64
- arm64 - arm64
os: os:
- windows - windows
- osx - osx
- linux - linux
env: GO111MODULE=on script: sh scripts/build.sh $TRAVIS_OS_NAME $TRAVIS_CPU_ARCH
script: jobs:
- sh scripts/build.sh $TRAVIS_OS_NAME $TRAVIS_CPU_ARCH include:
- stage: "Unit Tests"
arch:
- amd64
os:
- linux
script:
- go test -v -cover encoder_test.go encoder.go helper.go
- go test -v -cover helper_test.go helper.go
deploy: deploy:
provider: releases provider: releases