-
Notifications
You must be signed in to change notification settings - Fork 165
53 lines (49 loc) · 1.43 KB
/
gradle.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
name: Java CI with Gradle
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-16.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cache Gradle packages
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Install Docker
run: sudo ./ci/install_docker.sh
- name: Install Mesos
run: sudo ./ci/install_mesos.sh 1.9.0
- name: Set Port Range
run: sudo ./ci/set_port_range.sh
- name: Build and Unit Test
run: ./gradlew clean check javadoc -x integrationTest
- name: Test Integration
run: sudo ./gradlew integrationTest
- name: Archive Test Results
if: failure()
uses: actions/upload-artifact@v1
with:
name: JUnit
path: build/test-results
- name: Create Sandboxes Archive
if: always()
run: ./gradlew zipSandboxes --info && sudo rm -rf sandboxes && ls build/distributions
- name: Archive Sandboxes
if: always()
uses: actions/upload-artifact@v1
with:
name: Sandboxes
path: build/distributions/sandboxes-undefined.zip