Merge pull request #168 from bzz/hotfix-release

HOTFIX: CI for release
This commit is contained in:
Alexander 2018-10-24 00:38:35 +02:00 committed by GitHub
commit 4d314e7877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,8 @@ stages:
- name: test
- name: release
if: tag IS present
- name: publish
if: tag IS present
jobs:
include:
@ -67,6 +69,8 @@ jobs:
- name: 'linux shared lib'
stage: release
install:
- go get -v -t ./...
script: make linux-shared
deploy:
provider: release
@ -88,7 +92,7 @@ jobs:
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends clang g++ gcc gcc-multilib libc6-dev libc6-dev-i386 mingw-w64 patch xz-utils
- cd ${HOME}
- curl -sSL ${OSXCROSS_URL} | tar -C ${HOME} -xzf -
- curl -sfSL ${OSXCROSS_URL} | tar -C ${HOME} -xzf -
- cd $GOPATH/src/gopkg.in/src-d/enry.v1
script: make darwin-shared
deploy:
@ -99,7 +103,7 @@ jobs:
skip_cleanup: true
- name: 'java: publish to maven'
stage: release
stage: publish
language: scala
jdk: oraclejdk8
install:
@ -109,9 +113,9 @@ jobs:
before_script:
- cd java
- make
- curl -o ./shared/linux-x86-64/libenry.so -sL "https://github.com/$TRAVIS_REPO_SLUG/releases/download/$TRAVIS_TAG/libenry.so"
- curl -o ./shared/linux-x86-64/libenry.so -sfL "https://github.com/$TRAVIS_REPO_SLUG/releases/download/$TRAVIS_TAG/libenry.so" || travis_terminate 1
- mkdir -p ./shared/darwin
- curl -o ./shared/darwin/libenry.dylib -sL "https://github.com/$TRAVIS_REPO_SLUG/releases/download/$TRAVIS_TAG/libenry.dylib"
- curl -o ./shared/darwin/libenry.dylib -sfL "https://github.com/$TRAVIS_REPO_SLUG/releases/download/$TRAVIS_TAG/libenry.dylib" || travis_terminate 1
- openssl aes-256-cbc -K $encrypted_a0e1c69dbbc7_key -iv $encrypted_a0e1c69dbbc7_iv -in key.asc.enc -out key.asc -d
- gpg --no-default-keyring --primary-keyring ./project/.gnupg/pubring.gpg --secret-keyring ./project/.gnupg/secring.gpg --keyring ./project/.gnupg/pubring.gpg --fingerprint --import key.asc
script: