-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
85 lines (83 loc) · 2.66 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
jobs:
include:
- stage: UnitTest
dist: xenial
language: java
jdk:
- openjdk11
before_script:
- sqlite3 -version
- make -version
- make clean-sqlite
- make sqlite-db-build
- make sqlite-db-populate
script:
- "./gradlew test --tests=org.*"
after_success:
- "./gradlew jacocoTestReport"
- bash <(curl -s https://codecov.io/bash)
- stage: DockerIntegrationTest
dist: xenial
language: java
jdk:
- openjdk11
services:
- docker
before_install:
- make docker-build
- source ci/set-docker-image-version.sh
- echo ${DOCKER_IMG_VER}
- docker run --rm -d --name starter-kit-common-test-default -p 4500:4500 -p 4501:4501 ga4gh/ga4gh-starter-kit-common:${DOCKER_IMG_VER}
- docker run --rm -d --name starter-kit-common-test-custom -p 7000:7000 -p 7001:7001 ga4gh/ga4gh-starter-kit-common:${DOCKER_IMG_VER} --config ./src/test/resources/config/demo-config.yml
script:
- "./gradlew test --tests=integration.*"
# - stage: GithubRelease
# if: >
# type = push
# AND repo = ga4gh/ga4gh-starter-kit-common
# AND branch =~ /^release\/\d+\.\d+\.\d+$/
# AND fork = false
# AND commit_message =~ /^trigger-release(-github)?$/
# dist: xenial
# language: java
# jdk:
# - openjdk11
# script:
# - echo "Deploying to Github Releases"
# - source ci/set-docker-image-version.sh
# - export TAG_NAME="v${DOCKER_IMG_VER}"
# - export NAME="GA4GH Starter Kit - Common v${DOCKER_IMG_VER}"
# - export BODY="v${DOCKER_IMG_VER} release of commons library for the GA4GH Starter Kit"
# - git tag $TAG_NAME
# - git tag
# deploy:
# provider: releases
# skip_cleanup: true
# tag_name: $TAG_NAME
# name: $NAME
# body: $BODY
# api_key: "$GITHUB_API_KEY"
# overwrite: true
# on:
# all_branches: true
#
# - stage: DockerRelease
# if: >
# type = push
# AND repo = ga4gh/ga4gh-starter-kit-common
# AND branch =~ /^release\/\d+\.\d+\.\d+$/
# AND fork = false
# AND commit_message =~ /^trigger-release(-docker)?$/
# dist: xenial
# language: java
# jdk:
# - openjdk11
# services:
# - docker
# before_script:
# - make docker-build
# - source ci/set-docker-image-version.sh
# - echo ${DOCKER_IMG_VER}
# - docker login -u ${DOCKER_USER} -p ${DOCKER_TOKEN}
# script:
# - make docker-publish