Skip to content

Commit

Permalink
Push releases on github for taggued commits only
Browse files Browse the repository at this point in the history
  • Loading branch information
CRITEOIS\s.pendino committed Apr 4, 2018
1 parent ded4c8c commit e37254e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,29 @@ go_import_path: github.com/bubblesly/go-jsonnet
language: go
sudo: false
go:
- 1.8.x
- 1.9.x
- 1.10.x
script:
- export BAKELITE_VERSION="v0.1.0"
- export BAKELITE_OS="linux"
- export BAKELITE_ARCH="amd64"
- curl -L -o bakelite.tar.gz "https://github.com/terinjokes/bakelite/releases/download/${BAKELITE_VERSION}/bakelite-${BAKELITE_OS}-${BAKELITE_ARCH}.tar.gz"
- tar -xf bakelite.tar.gz
- export SOURCE_DATE_EPOCH=$(git show -s --format=%ci ${TRAVIS_TAG:-${TRAVIS_COMMIT}}^{commit})
- ./bakelite-${BAKELITE_OS}-${BAKELITE_ARCH} -platforms="-plan9" -ldflags="-X main.version=\"$(make
show-version)\"" github.com/bubblesly/go-jsonnet
- for i in go-jsonnet-*; do tar --mtime="${SOURCE_DATE_EPOCH}" --owner=0 --group=0
--numeric-owner -c $i | gzip -n - > $i.tar.gz; done
- shasum -a 512 go-jsonnet-*.tar.gz | tee sha512sum.txt
- ./bakelite-${BAKELITE_OS}-${BAKELITE_ARCH} -platforms="-plan9" github.com/bubblesly/go-jsonnet/jsonnet
- for i in jsonnet-*; do tar --mtime="${SOURCE_DATE_EPOCH}" --owner=0 --group=0 --numeric-owner -c $i | gzip -n - > $i.tar.gz; done
- shasum -a 512 jsonnet-*.tar.gz | tee sha512sum.txt
install:
- go get -d -v ./...
- go build -v ./...
deploy:
provider: releases
file_glob: true
file:
- go-jsonnet-*.tar.gz
- jsonnet-*.tar.gz
- sha512sum.txt
skip_cleanup: true
on:
repo: bubblesly/go-jsonnet
tags: true
api-key:
secure: ZEl1JCVLdZ3TP10rXzIOAiT+TGt+pB8PEZ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