Skip to content

Commit ecbc7f3

Browse files
committed
Add build stage to travis
1 parent c700d2f commit ecbc7f3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,25 @@ jobs:
2121
- echo "Run unit tests..."
2222
- go vet $(go list ./...)
2323
- go test -v -race $(go list ./...)
24+
25+
- stage: Build
26+
go:
27+
-1.13.x
28+
os:
29+
- linux
30+
before_script:
31+
- go mod tidy -v
32+
- export GOVERSION=$(go version | awk '{print $3;}')
33+
script:
34+
- echo "Build stage"
35+
- make compile
36+
after_success:
37+
deploy:
38+
skip_cleanup: true
39+
provider: script
40+
script: make release
41+
on:
42+
tags: true
43+
condition: "$TRAVIS_OS_NAME = linux"
44+
addons:
45+
ssh_known_hosts: github.com

0 commit comments

Comments
 (0)