-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (41 loc) · 1.63 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
dist: trusty
language: java
jdk:
- openjdk11
# Configure mail notifications
notifications:
email:
on_success: never
on_failure: always
# Update permission for gradle wrapper
before_install:
- chmod +x gradlew
# Run code coverage report
script:
- ./gradlew check
- ./gradlew codeCoverageReport
# Cache gradle
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/"
# Upload test coverage to codecov
after_success:
- bash <(curl -s https://codecov.io/bash)
# Generate project object model (POM)
before_deploy:
- ./gradlew generatePomFileForMavenCustomPublication
# Deploy artefact to bintray (https://docs.travis-ci.com/user/deployment/bintray)
deploy:
provider: bintray
on:
all_branches: true
file: ./bintray.json
user: mwieland
key:
secure: a7k2mhQsYoAPQdcclSnx/WX8Qyf33h6fUeiItIYvvNl4wVo6HMSPjr6pxV+qvHFb2/HKPyJIw13iyBQ+IP9o3ByIYR0JnMOiTGB7HEd5k90vngkej5u45RzLxu60gSz6nQt/S4WE076oVRY2sewyWVSvnxlk9LjQbgYT+fOQlWeWBya/z270lAnj5swegalmCBLVXZ1NkB6xZCTFq9Wmuu51l2w1zsYVODBejTNccCt2Vhbeu7X3Q+LHkI6x6yB/R5axWuGB2qB9zNbvxFET4Tr/MtK/B0OtIZRdobLFp5bDertyAOEjg8C0PgqiuHGVeHkCCZggBu0+a0zunuh0C7DTv5UmQEeb3OgRhrmH5eAlj07Am1bYkaAqhawSKshAwg95CkXyfsHgnOxfP0ULmnG4Fny9ltuENMiee/kfoXPM+oRWaFGTnZ4yJP1OUKpPRT+11L3D8ZKsOXScjiAp2JBfasgUM0Sjc/hsdUi/f3LOtN78EQCT6TyFT/Z8XQLcnPS78SnvRuiKLSHYg2fITt+NcIFJU3C/tZo3sllzcT8GO23z3b+/OaEtYj6oANIpwsU3kd5RZiKu4uCqBIp8IcXf1qYeMCVETEHtpwzbJhrOekDmZUyfWLxOgcNRcu0eG/qEMGIMWNe8YZXpr0urEW82z8SYEQFX5C+ojSi+py8=
skip_cleanup: true
passphrase: GPG_PASSPHRASE