[go: nahoru, domu]

Skip to content

Commit

Permalink
[+] Reduce travis build time
Browse files Browse the repository at this point in the history
  • Loading branch information
WangYihang committed Apr 17, 2021
1 parent 930abec commit 0151b46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ addons:
update: true
script:
- go test ./...
- test ${TRAVIS_TAG} && gox -ldflags="-s -w" -output="./build/{{.Dir}}_{{.OS}}_{{.Arch}}"; echo "Skiping build with gox..."
- test ${TRAVIS_TAG} && gox -os="linux" -arch="amd64" -ldflags="-s -w" -output="./build/{{.Dir}}_{{.OS}}_{{.Arch}}"; echo "Skiping build with gox..."
- test ${TRAVIS_TAG} && gox -os="windows" -arch="amd64" -ldflags="-s -w" -output="./build/{{.Dir}}_{{.OS}}_{{.Arch}}"; echo "Skiping build with gox..."
- test ${TRAVIS_TAG} && gox -os="darwin" -arch="arm64" -ldflags="-s -w" -output="./build/{{.Dir}}_{{.OS}}_{{.Arch}}"; echo "Skiping build with gox..."
- test ${TRAVIS_TAG} && gox -os="darwin" -arch="amd64" -ldflags="-s -w" -output="./build/{{.Dir}}_{{.OS}}_{{.Arch}}"; echo "Skiping build with gox..."
- test ${TRAVIS_TAG} && for i in `ls $TRAVIS_BUILD_DIR/build/`; do upx --best "$TRAVIS_BUILD_DIR/build/$i"; done ; echo "Skipping compress with upx..."
- test !${TRAVIS_TAG} && go build
deploy:
Expand Down

0 comments on commit 0151b46

Please sign in to comment.