diff --git a/.travis.yml b/.travis.yml index 450a0de..d8b05f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,21 @@ language: go dist: trusty sudo: false -go: - - 1.8.x + install: - go get github.com/golang/dep/cmd/dep - dep ensure -script: - - go test -v $(go list ./... | grep -v /vendor/) jobs: include: + - stage: test + go: 1.8.x + script: + - go test -v $(go list ./... | grep -v /vendor/) - stage: Build and Deploy go: 1.8.x script: - - export SOURCE_DATE_EPOCH=$(git show -s --format=%ci ${TRAVIS_TAG:-${TRAVIS_COMMIT}}) + - export SOURCE_DATE_EPOCH=$(git show -s --format=%ci ${TRAVIS_TAG:-${TRAVIS_COMMIT}}^{commit}) - go build github.com/terinjokes/bakelite - "./bakelite github.com/terinjokes/bakelite" - for i in bakelite-*; do tar --mtime="${SOURCE_DATE_EPOCH}" --owner=0 --group=0 --numeric-owner -c $i | gzip -n - > $i.tar.gz; done