Skip to content

Commit acf53d2

Browse files
committed
Combine to Travis
1 parent 6f8d978 commit acf53d2

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.travis.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,28 @@ language: go
22

33
go:
44
- 1.13
5-
5+
6+
env: GO111MODULE=on
67
arch:
78
- amd64
89
- arm64
9-
1010
os:
1111
- windows
1212
- osx
1313
- linux
1414

15-
env: GO111MODULE=on
15+
script: sh scripts/build.sh $TRAVIS_OS_NAME $TRAVIS_CPU_ARCH
1616

17-
script:
18-
- sh scripts/build.sh $TRAVIS_OS_NAME $TRAVIS_CPU_ARCH
17+
jobs:
18+
include:
19+
- stage: "Unit Tests"
20+
arch:
21+
- amd64
22+
os:
23+
- linux
24+
script:
25+
- go test -v -cover encoder_test.go encoder.go helper.go
26+
- go test -v -cover helper_test.go helper.go
1927

2028
deploy:
2129
provider: releases

0 commit comments

Comments
 (0)