This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
38 lines (38 loc) · 2.59 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
sudo: required
language: java
dist: trusty
matrix:
include:
- env:
- TESTS=true
- COVERAGE=true
- env:
- CROSSDOCK=true
services:
- docker
env:
global:
- DOCKER_VERSION=1.11.1-0~trusty
- DOCKER_COMPOSE_VERSION=1.7.0
- COMMIT=${TRAVIS_COMMIT::8}
# travis encrypt -r <repo> SONATYPE_USERNAME=<username>
- secure: "jcv2VHOG3DpuQ4NtMD5q4Yq4iVgjbJLmJW5Sz4kPO/bnRUOuzeb5NatjKrQ6r5kNfsoyU59CHj3cD8v30ujzN29Vq8FpRcCH/g52ViJM3HzrR/s5MAnIfkymt8mGjNarwlVyF/jN6sX4I4sv2+EQE9XIrUhv86JMTk5Cic+Ax4droXhwZ1y3WLe3Jwf9vNDlMmcFcQKsOJcEZSQ8OH/agb6tnfKSXi+kwvuGpEEyq2ggxqXjKoZhfVt0G3yT9PT9i4q4ozHlZ4tQszVVT6QnhL+VO7PUQ5Xm0DApDJ/2a72zU6iGtDcPqXpnzsr2GNgkbCIyfUsVKBlKBeeMG6bwMFxcJYMujWPjZA5vRfKD4IV4PXyaToWA+c5da2gpBGeUSzxV4zuwe2u1uzv3Ju9+qcguyeHIYw6qV+SprASW/riadvT0ZP5B6j996gj99oMRLsFJAdNBEYYBPZxMpGd+T1DgOACh8nu2Eor4WD/xdBah4kDYy+gLR+Uv3qAc+eB4QyQpxzLkD8QPVBwbePPT34IxVMOJ3w1dHMz6MEMu5/MfUbYkcFCbls7OfbCQLih8GlgtVXGs7qfxqdGkaX6INMWRPaMl/B9VEXDh0yEshCTDmDSMC1vIleiL4gV0iavOgtyPjPGa9uBCEHKjS8i0MIQ8T16vNCxYO1IFTA2Lw0Y="
# travis encrypt -r <repo> SONATYPE_PASSWORD=<password>
- secure: "o66kcCAwpDjkmQgCi/dwKpylhXC4i8OdQvpa45egl0kuDwEibm5aETQ0fDnKCXwQMhb6gYpO2cgq9Cd0n38voYM63uKn4CVsc/bLmlRwTkowKZVaVLGmTYaqpk3G8fMrq8OMUCcHGlPCnxXyvr2kALhsspsO9WpVm/3gQjNEM4vG5VudWmnn/Vt7tTvEZslIJgkW2UEZSd8bWm2KLCgrjsKUyqJMH/rqlXGHV14vQA2yJpCsOGqz9DoFYgSRDxyhWlJpMe/mqyoPFOxpt1B9OejKQFXQanaEoZklonevzfpYCkG9XskW3NFBkCM6RP4xA9icOKisGvT6IW3zq457TY15pcd4gVfBfotF0h1jaf9VNlV9DQ7ooCb/S/Kf5HGXiBexBFN8ScW+O02iq+uWpO5Bz1wkZY0gjcr1FzV68L70p1eCWA2JBjcPWgRt3H24oIqzaBg1ltyT8aAvKiu2/cpyd1+lYS9pHfHp/tmwezEY56+ZI9op4Zehuv5oKSrRPbL7OooYZNYIM7+VPGngMogtDSIppETmylkqpROFM/ISmT7ZBMD/58gcMigplhyH0EoTmurZCGE3ly5WMXsLUM3jguLRwDVgvx1XpCvDgHWtC7Q85b1aLPyB42q7ijCEzLqBqq1v/oImXpdrrKwrApPzavumaWtB5mcVJO2pLDc="
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
before_install:
- ./travis/prepare-signing.sh $encrypted_677f232983c0_key $encrypted_677f232983c0_iv
- if [ "$CROSSDOCK" == true ]; then bash ./travis/install-crossdock-deps.sh ; fi
script:
- if [ "$TESTS" == true ]; then make test-travis ; else echo 'skipping tests'; fi
- if [ "$COVERAGE" == true ]; then ./gradlew codeCoverageReport ; else echo 'skipping coverage'; fi
- if [ "$CROSSDOCK" == true ]; then bash ./travis/build-crossdock.sh ; else echo 'skipping crossdock'; fi
after_success:
- if [ "$COVERAGE" == true ]; then bash <(curl -s https://codecov.io/bash) ; fi
- if [ "$CROSSDOCK" == true -a "$TRAVIS_PULL_REQUEST" == false ]; then ./gradlew upload ; fi