forked from pedrovgs/KotlinSnapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (55 loc) · 1.35 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
51
52
53
54
55
56
57
58
59
60
os: linux
language: java
# lxd is more of a docker solution rather than a full blown VM
# These are much faster
virt: lxd
stages:
- test
before_script:
- ./gradlew install
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# This CI is rather expensive for the size of the project
#
# So we don't have to wait forever for the CI to run, everything in the `test` stage
# will run in parallel.
jobs:
include:
- stage: test
jdk: oraclejdk9
name: Basic Checks
script:
- ./gradlew ktlint test
- stage: test
jdk: oraclejdk8
name: AndroidConsumer
language: android
android:
# Please keep these as slim as possible as they SIGNIFICANTLY slow down the build
components:
- build-tools-28.0.0-rc02
- build-tools-27.0.3
- android-27
- android-28
script:
- cd AndroidConsumer
- ./gradlew test
- stage: test
jdk: oraclejdk9
name: KotlinConsumer
script:
- cd KotlinConsumer
- ./gradlew test
- stage: test
jdk: oraclejdk11
name: SpringConsumer
env:
- updateSnapshots=1
script:
- cd SpringConsumer
- ./gradlew test