forked from stefanbirkner/system-rules
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
26 lines (26 loc) · 734 Bytes
/
.travis.yml
File metadata and controls
26 lines (26 loc) · 734 Bytes
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
language: java
install:
# Download dependencies with JDK 8 because Maven Central supports
# TLS 1.2 only but OpenJDK 6 does not.
- export ORIGINAL_JAVA_HOME=$JAVA_HOME
- jdk_switcher use oraclejdk8
- ./mvnw test -DskipTests
# Delete all files created with JDK 8
- ./mvnw clean
# Build with JDK 6 because we build the artifacts that are published
# to Maven Central with OpenJDK 6, too.
- jdk_switcher use openjdk6
# Run original install command but without GPG signing
- ./mvnw install -DskipTests=true -Dgpg.skip=true
# Restore desired JDK
- export JAVA_HOME=$ORIGINAL_JAVA_HOME
addons:
apt:
packages:
- openjdk-6-jdk
jdk:
- openjdk10
- oraclejdk9
- oraclejdk8
- openjdk7
- openjdk6