forked from jdbi/jdbi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (35 loc) · 2.17 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
language: java
sudo: false
# No much sense in keeping jdbi artifacts cached
before_cache:
rm -rf $HOME/.m2/repository/org/jdbi
cache:
directories:
- '$HOME/.m2/repository'
before_install:
- cp src/build/travis-toolchains.xml ~/.m2/toolchains.xml
- '[ "$TRAVIS_SECURE_ENV_VARS" != "true" ] || openssl aes-256-cbc -K $secure_files_key -iv $secure_files_iv -in src/build/travis-settings.xml.enc -out ~/.m2/settings.xml -d'
- '[ "$TRAVIS_SECURE_ENV_VARS" != "true" ] || openssl aes-256-cbc -K $secure_files_key -iv $secure_files_iv -in src/build/travis-settings-security.xml.enc -out ~/.m2/settings-security.xml -d'
install:
- '[ "$TRAVIS_SECURE_ENV_VARS" != "true" ] || mvn -Ptoolchains,oracle -DskipTests=true -Dbasepom.check.skip-all=true -Dmaven.javadoc.skip=true -B install'
- '[ "$TRAVIS_SECURE_ENV_VARS" = "true" ] || mvn -Ptoolchains -DskipTests=true -Dbasepom.check.skip-all=true -Dmaven.javadoc.skip=true -B install'
matrix:
include:
- env:
- TESTS=Y
script:
- '[ "$TRAVIS_SECURE_ENV_VARS" != "true" ] || mvn -Dmaven.javadoc.skip=true -Dbasepom.check.skip-basic=true -Dbasepom.check.skip-findbugs=true -Dbasepom.check.skip-pmd=true -Dbasepom.check.skip-checkstyle=true -Ptoolchains,oracle -B verify'
- '[ "$TRAVIS_SECURE_ENV_VARS" = "true" ] || mvn -Dmaven.javadoc.skip=true -Dbasepom.check.skip-basic=true -Dbasepom.check.skip-findbugs=true -Dbasepom.check.skip-pmd=true -Dbasepom.check.skip-checkstyle=true -Ptoolchains -B verify'
jdk: oraclejdk8
- env:
- DOCUMENTATION=Y
script:
- '[ "$TRAVIS_SECURE_ENV_VARS" != "true" ] || mvn -DskipTests=true -Dbasepom.check.skip-all=true -Ptoolchains,oracle -B verify'
- '[ "$TRAVIS_SECURE_ENV_VARS" = "true" ] || mvn -DskipTests=true -Dbasepom.check.skip-all=true -Ptoolchains -B verify'
jdk: oraclejdk8
- env:
- CODE_STYLE=Y
script:
- '[ "$TRAVIS_SECURE_ENV_VARS" != "true" ] || mvn -DskipTests=true -Dmaven.javadoc.skip=true -Ptoolchains,oracle -B verify'
- '[ "$TRAVIS_SECURE_ENV_VARS" = "true" ] || mvn -DskipTests=true -Dmaven.javadoc.skip=true -Ptoolchains -B verify'
jdk: oraclejdk8