forked from LinuxForHealth/FHIR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (71 loc) · 2.94 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
###############################################################################
# (C) Copyright IBM Corp. 2019, 2020
#
# SPDX-License-Identifier: Apache-2.0
###############################################################################
# Travis Build
# **SKIPPING BUILD via Travis**
# To skip the build use:
# [skip <KEYWORD>]
# ci, travis, travis ci, travis-ci, or travisci
# Example: [skip travis] Update README
#
# Job Lifecycle https://docs.travis-ci.com/user/job-lifecycle/
# Environment Variables
# https://docs.travis-ci.com/user/environment-variables/#convenience-variables
# Dist Limits - https://docs.travis-ci.com/user/reference/overview/
################################################################################################################
# Define the environment variables in this block:
# JAVA_HOME is already set.
# BINTRAY_PASSWORD and BINTRAY_USERNAME are specified in repository settings.
################################################################################################################
# Setup the basics (distribution/addon/jdk/java)
language: java
# Setup the distribution with git-lfs addon
# packages are installed in before_install
# details on image https://docs.travis-ci.com/user/reference/bionic/#jvm-clojure-groovy-java-scala-images
dist: bionic
# Use JDKs per https://github.com/IBM/FHIR/wiki/Setting-up-for-development
# switch to 'trusty' to enable openjdk8 - https://docs.travis-ci.com/user/reference/trusty/#jvm-clojure-groovy-java-scala-images
jdk:
- openjdk11
# Matrix build (just incase we choose)
matrix:
fast_finish: true
################################################################################################################
# GIT Settings:
branches:
except:
- gh-pages
################################################################################################################
# Make sure we are all up to date
before_install:
- sudo apt-get update || true
- sudo apt-get install git-lfs
# originally using stages, it spins up many worker threads.
# in this case, we've opted for conditional usage using BASH scripts.
# URL - https://github.com/travis-ci/travis-conditions and https://docs.travis-ci.com/user/environment-variables/
# these are useful.
# Build and Release for Git Tag
script:
- |
if [[ "${TRAVIS_EVENT_TYPE}" == "push" && "${TRAVIS_TAG}" != "" ]]
then
bash build/release/bootstrap-env.sh
. ./build/release/bootstrap.env
bash build/release/version.sh
bash build/release/clean.sh
travis_wait 30 bash build/release/build.sh
bash build/release/code-coverage.sh
bash build/release/release.sh
bash build/release/sync-maven-central.sh
bash build/release/release-commit-details.sh
bash build/release/diagnostics.sh
fi
notifications:
email:
recipients:
on_success: never # default: change
on_failure: always # default: always
# EOF