Skip to content

Commit

Permalink
Travis cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby committed May 13, 2019
1 parent 60fa64b commit 2cc6dcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .travis.yml
@@ -1,6 +1,3 @@
env:
- GO111MODULE=on GOFLAGS=-mod=vendor CGO_ENABLED=0

language: go

addons:
Expand All @@ -22,18 +19,18 @@ script:

after_script:
# Install and upload test coverage must not failure for test build
- test -n "$TRAVIS_TAG" || go get -mod= golang.org/x/tools/cmd/cover
- test -n "$TRAVIS_TAG" || go get -mod= github.com/mattn/goveralls
- test -n "$TRAVIS_TAG" || go get golang.org/x/tools/cmd/cover
- test -n "$TRAVIS_TAG" || go get github.com/mattn/goveralls
- test -n "$TRAVIS_TAG" || goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN

before_deploy:
- git config --local user.name "$GIT_NAME"
- git config --local user.email "$GIT_EMAIL"
- BUILD_TIME=$(TZ=UTC date --rfc-3339=seconds)
- go get -mod= github.com/mitchellh/gox
- go get github.com/mitchellh/gox
- mkdir -p output
- OS_ARCH_BUILDS="darwin/amd64 linux/386 linux/amd64 linux/arm freebsd/386 freebsd/amd64 freebsd/arm windows/386 windows/amd64"
- gox --mod=vendor -osarch "$OS_ARCH_BUILDS" --ldflags "-X \"main.VERSION=$TRAVIS_TAG+build-$TRAVIS_BUILD_NUMBER, Build time $BUILD_TIME, commit $TRAVIS_COMMIT\"" --output="output/lets-proxy_{{.OS}}_{{.Arch}}" -verbose --rebuild ./cmd/
- GO111MODULE=on CGO_ENABLED=0 gox --mod=vendor -osarch "$OS_ARCH_BUILDS" --ldflags "-X \"main.VERSION=$TRAVIS_TAG+build-$TRAVIS_BUILD_NUMBER, Build time $BUILD_TIME, commit $TRAVIS_COMMIT\"" --output="output/lets-proxy_{{.OS}}_{{.Arch}}" -verbose --rebuild ./cmd/
- bash tests/make_archives.sh

deploy:
Expand Down
2 changes: 2 additions & 0 deletions tests/make_archives.sh
Expand Up @@ -2,6 +2,8 @@
set -ev

cd output
ls

./lets-proxy_linux_amd64 --print-default-config > config_default.toml_


Expand Down

0 comments on commit 2cc6dcf

Please sign in to comment.