Skip to content

Commit

Permalink
Do cross-compile in before script
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Treat committed Jun 7, 2017
1 parent 9f31d97 commit 9a527bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ before_script:
- gosimple $EXCLUDE_VENDOR
- misspell -error -locale US .
- staticcheck $EXCLUDE_VENDOR
- ./scripts/cross_compile.sh $TRAVIS_TAG
script:
- go test -i -race $EXCLUDE_VENDOR
- go test -v -race $EXCLUDE_VENDOR
after_success:
- if [[ "$TRAVIS_GO_VERSION" == 1.7.* ]]; then ./scripts/cov.sh TRAVIS; fi
- if [[ "$TRAVIS_GO_VERSION" == 1.7.* ]] && [ "$TRAVIS_TAG" != "" ]; then ./scripts/cross_compile.sh $TRAVIS_TAG; ghr --owner nats-io --token $GITHUB_TOKEN --draft --replace $TRAVIS_TAG pkg/; fi
- if [[ "$TRAVIS_GO_VERSION" == 1.7.* ]] && [ "$TRAVIS_TAG" != "" ]; ghr --owner nats-io --token $GITHUB_TOKEN --draft --replace $TRAVIS_TAG pkg/; fi

0 comments on commit 9a527bf

Please sign in to comment.