forked from junit-team/junit5-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (47 loc) · 1.89 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
50
sudo: false
language: java
jdk: oraclejdk8
before_install:
- unset _JAVA_OPTIONS
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
jobs:
include:
# starter
- stage: starter
env: TOOL='Ant'
script: cd $TRAVIS_BUILD_DIR/junit5-jupiter-starter-ant && ./build.sh
- stage: starter
env: TOOL='Gradle'
script: cd $TRAVIS_BUILD_DIR/junit5-jupiter-starter-gradle && ./gradlew test --console plain
- stage: starter
env: TOOL='Maven'
script: cd $TRAVIS_BUILD_DIR/junit5-jupiter-starter-maven && ./mvnw test
- stage: starter
env: TOPIC='Sample Extensions'
script: cd $TRAVIS_BUILD_DIR/junit5-jupiter-extensions && ./gradlew test --console plain
# migration
- stage: migration
env: TOOL='Gradle'
script: cd $TRAVIS_BUILD_DIR/junit5-migration-gradle && ./gradlew build --console plain --scan
- stage: migration
env: TOOL='Maven'
script: cd $TRAVIS_BUILD_DIR/junit5-migration-maven && ./mvnw test
# java 9 and higher
- stage: java-9
jdk: oraclejdk9
env: TOOL='Maven'
script: cd $TRAVIS_BUILD_DIR/junit5-migration-maven && ./mvnw test
- stage: java-9
env: TOPIC='Java Platform Module System'
script: . ./install-jdk.sh -F 11 -L GPL && cd $TRAVIS_BUILD_DIR/junit5-modular-world && ./build.jsh
# snapshot -- use current junit master branch
- stage: snapshot
env: TOOL='Gradle'
script: . ./install-jdk.sh -F 10 -L GPL -C && cd $TRAVIS_BUILD_DIR/junit5-jupiter-starter-gradle && ./gradlew test --console plain --build-file build-SNAPSHOT.gradle
- stage: snapshot
env: TOOL='Maven'
script: . ./install-jdk.sh -F 11 -L GPL -C && cd $TRAVIS_BUILD_DIR/junit5-jupiter-starter-maven && ./mvnw test --file pom-SNAPSHOT.xml
# all samples, one-shot
# - stage: all
# env: TOPIC='Build all samples'
# script: . ./install-jdk.sh -F 10 && ./build-all-samples.jsh