forked from jruby/jruby
-
Notifications
You must be signed in to change notification settings - Fork 1
110 lines (98 loc) · 2.88 KB
/
ci.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: JRuby CI
on: [push, pull_request]
env:
JAVA_OPTS: '-XX:+TieredCompilation -XX:TieredStopAtLevel=1'
jobs:
# Maven test suites that pass on both Java 8 and 11
maven-test:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [8, 11]
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v2
- name: set up java ${{ matrix.java-version }}
uses: actions/[email protected]
with:
java-version: ${{ matrix.java-version }}
- name: cache dependencies
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: bootstrap
run: mvn -Pbootstrap clean package
- name: main profile
run: tool/maven-ci-script.sh
env:
PHASE: 'package -Pmain'
- name: dist profile
run: tool/maven-ci-script.sh
env:
PHASE: 'package -Pdist'
- name: complete profile
run: tool/maven-ci-script.sh
env:
PHASE: 'package -Pcomplete'
- name: osgi profile
run: tool/maven-ci-script.sh
env:
PHASE: 'package -Posgi'
- name: main extended
run: tool/maven-ci-script.sh
env:
PHASE: 'package -Pmain,test -Dinvoker.test=extended'
- name: test profile
run: tool/maven-ci-script.sh
env:
PHASE: 'package -Ptest'
# Maven test suites that don't pass on Java 11
maven-test-8:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v2
- name: set up java 8
uses: actions/[email protected]
with:
java-version: 8
- name: cache dependencies
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: bootstrap
run: mvn -Pbootstrap clean package
- name: jruby-jars profile
run: tool/maven-ci-script.sh
env:
PHASE: 'package -Pjruby-jars'
- name: jruby-jars extended
run: tool/maven-ci-script.sh
env:
PHASE: 'package -Pjruby-jars,test -Dinvoker.test=extended'
dependency-check:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: set up java 8
uses: actions/[email protected]
with:
java-version: 8
- name: cache dependencies
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: dependency convergence
run: tool/maven-ci-script.sh
env:
PHASE: 'install -Pmain -Dinvoker.test=GH-6081*'