-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (36 loc) · 1.35 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
# https://docs.travis-ci.com/user/languages/java/
# language
language: java
#To fix "Expected feature release number in range of 9 to 14, but got: 8"
# https://travis-ci.community/t/error-installing-oraclejdk8-expected-feature-release-number-in-range-of-9-to-14-but-got-8/3766/6
dist: trusty
# version numbers
jdk:
- oraclejdk8
# would just use default install/script but the ./mvnw script errors on travis
# obviously this only works for maven builds right now...
install:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
script:
- mvn test
#env:
# - MAVEN_VERSION=3.3.9
#install:
# - "mvn -N io.takari:maven:wrapper -Dmaven=${MAVEN_VERSION}"
# - "./mvnw --show-version --errors --batch-mode test-compile dependency:go-offline"
# #- "mvn install -Dmaven.compiler.target=1.8 -Dmaven.compiler.source=1.8 -DskipTests=true"
#
#script:
# - "./mvnw --show-version --errors --batch-mode -Prun-its clean verify"
#- "mvn test -Dmaven.compiler.target=1.8 -Dmaven.compiler.source=1.8"
# Improve Build Speed https://dzone.com/articles/travis-ci-tutorial-java-projects
cache:
directories:
- $HOME/.m2
# Notifications https://docs.travis-ci.com/user/notifications/
notifications:
email:
recipients:
on_success: always # default: change
on_failure: always # default: always