Merge pull request #169 from bzz/fixing-ci-continue

HOTFIX: Fixing release automation
This commit is contained in:
Alexander 2018-10-24 11:20:20 +02:00 committed by GitHub
commit 6f6555328e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -58,6 +58,8 @@ jobs:
- name: 'linux packages'
stage: release
install:
- go get -v -t ./...
script: make packages
deploy:
provider: releases
@ -66,6 +68,7 @@ jobs:
file_glob: true
file: build/*.tar.gz
skip_cleanup: true
tags: true
- name: 'linux shared lib'
stage: release
@ -79,6 +82,7 @@ jobs:
file:
- ./.shared/linux-x86-64/libenry.so
skip_cleanup: true
tags: true
- name: 'macOS shared lib'
stage: release
@ -101,6 +105,7 @@ jobs:
secure: $GITHUB_TOKEN
file: ./.shared/darwin/libenry.dylib
skip_cleanup: true
tags: true
- name: 'java: publish to maven'
stage: publish
@ -135,3 +140,4 @@ jobs:
file_glob: true
file: ./target/enry-java*.jar
skip_cleanup: true
tags: true

View File

@ -3,12 +3,12 @@ PROJECT = enry
COMMANDS = cmd/enry
# Including ci Makefile
MAKEFILE = Makefile.main
CI_REPOSITORY = https://github.com/src-d/ci.git
CI_FOLDER = .ci
CI_REPOSITORY ?= https://github.com/src-d/ci.git
CI_BRANCH ?= v1
CI_PATH ?= .ci
MAKEFILE := $(CI_PATH)/Makefile.main
$(MAKEFILE):
@git clone --quiet $(CI_REPOSITORY) $(CI_FOLDER); \
cp $(CI_FOLDER)/$(MAKEFILE) .;
git clone --quiet --depth 1 -b $(CI_BRANCH) $(CI_REPOSITORY) $(CI_PATH);
-include $(MAKEFILE)
# Docsrv: configure the languages whose api-doc can be auto generated