-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy path.travis.yml
57 lines (51 loc) · 4.76 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
sudo: required # required for docker usage in the build
language: java
jdk: openjdk8
services:
- docker
- mongodb # setting up Mongo to get access to the CLI. We instantiate our test Mongo instance via Docker
env:
global:
# TODO revert the "securityCleanup" branch change
- DEPLOY_ENABLED=`if [[ (! -z "$TRAVIS_TAG") || ("$TRAVIS_BRANCH" == "master") || ("$TRAVIS_BRANCH" == "securityCleanup") ]]; then echo true; else echo false; fi`
- RELEASE_ENABLED=`if [[ (! -z "$TRAVIS_TAG")]]; then echo true; else echo false; fi`
- VERSION=`if [[ -z "$TRAVIS_TAG" ]]; then echo $TRAVIS_BRANCH-SNAPSHOT; else echo $TRAVIS_TAG; fi`
- MAVEN_OPTS="-Drevision=$VERSION -Dmaven.repo.local=$HOME/.m2/repository -Xmx2g -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
# SONATYPE_USERNAME
# - secure: "Rp3iGAP4E9jzUKJnIswrRvMJnx/69W7LMqidDsUA12+aQQwMl9Ukm9SPKW6l67Z2Yt9bsDltnkISqJ4Zgxp2DLH+g8Oqq0vz7E5vs9JEXJUGEzyVp2jsDskrAjT2V7HVpnxB6iDG6NNxDGV12UkmV2aCbBLWNiLNZDd1W/wS84G/I9Qx8FVoYl4glFCHbfw4JBcUtSb66tdZ2UjqSzyAIPJYZHO8FJyiygj+/rY1fvqH1Pbw8tY0g5gshmGNdrXqETukpx+fxpL8KCEpUy7XWKS6h1b/AH8AEepmG3WYY0O5mqPV/y/OKrtnJSoWOW6sp+o9eiCx/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mKj26r+ZcRAFtzHlGYN6qjnH1PvwQup5JyTYARFjk0BiA3lWlr7w5kd1x2AR05w/2aIGZxOkhnIMxrFXzr1NmSujQgFEtejSipZYB+mazEWTKR/MiwNtff3507rFY9Yjp118IhzsIFu4x7i/GpeRP/yJhYMAps9w1ILkVAK/IorypGZqgfZCGHtENUHOQnd+owaS0eV2FRDCoUOdOZ62cEcez3CAP7X5J2VlBq1sADSb5tki6ZzOBUyYP0bpG3Gr4ayTg5YFrbQ+bYsgR8bXZuDj4sBDfVSho0l1vKAdMrGaeKDvbJOBGRV6keSybKHPo="
script:
# We need to run this first to install the maven jars (otherwise, the regular build won't work that references those jars)
- mvn -B -f obevo-db-impls/obevo-db-db2 -Pinstall-jars-db2 antrun:run@install-jars-db2
# Then we run the full build (unit tests + integration tests)
- mvn -B -T 1.0C -Ddocker.build.enabled=true verify
# see this - https://docs.travis-ci.com/user/deployment/
# possibly an open issue around master + tags
deploy:
- provider: script
script: ./.travis-deploy.sh
skip_cleanup: true
on:
all_branches: true
condition: $DEPLOY_ENABLED == true
- provider: pages
skip_cleanup: true
github-token: $GH_TOKEN
local-dir: obevo-site/target/site
on:
all_branches: true
condition: $RELEASE_ENABLED == true
- provider: releases
skip_cleanup: true
api_key: $GH_TOKEN
draft: true
file_glob: true
file: obevo-dists/obevo-cli/target/obevo-cli-*-dist.zip
on:
all_branches: true
condition: $DEPLOY_ENABLED == true