-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
32 lines (27 loc) · 952 Bytes
/
.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
jobs:
include:
- os: linux
jdk: openjdk8
language: java
- os: windows
language: shell
env:
- MAVEN_VERSION=3.6.3 JAVA_VERSION=8.242.8.1
before_install:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then
echo "Installing java ${JAVA_VERSION}";
choco install openjdk8 --version ${JAVA_VERSION};
echo "Installing maven ${MAVEN_VERSION}";
choco install maven --version ${MAVEN_VERSION};
export JAVA_HOME="/c/Program Files/OpenJDK/openjdk-8u242-b08";
export MAVEN_HOME="/c/ProgramData/chocolatey/lib/maven/apache-maven-${MAVEN_VERSION}/bin";
export PATH="${PATH}:${JAVA_HOME}/bin:${MAVEN_HOME}";
fi
- "echo ${PATH}"
- "mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=${MAVEN_VERSION}"
script:
- ./mvnw install -B -V
- ./mvnw javadoc:jar
- ./mvnw javadoc:test-aggregate
after_success:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then bash <(curl -s https://codecov.io/bash); fi