-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (23 loc) · 910 Bytes
/
.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
sudo: false
language: java
# validate this file online: http://lint.travis-ci.org/
# see https://medium.com/@nicole_a_tesla/how-i-made-travis-ci-gradle-work-5c7a540ef639
jdk:
- oraclejdk8 # tells Travis to use Java 8
# make gradlew executable: see http://stackoverflow.com/a/33820642/6287240
before_install:
- chmod +x gradlew
# see https://docs.travis-ci.com/user/languages/java/
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/
# see https://docs.travis-ci.com/user/customizing-the-build/#Skipping-the-Installation-Step
install: true
# see https://docs.travis-ci.com/user/customizing-the-build/#Customizing-the-Build-Step
script:
- gradle clean check build install --console plain
- cd demo && gradle clean check build --console plain