forked from ForgeEssentials/ForgeEssentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 loc) · 769 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
31
32
33
34
35
36
37
38
39
40
41
42
# Tell Travis this is a Java project.
language: java
dist: trusty
jdk:
- oraclejdk8
# Tell Travis we don't need sudo,
# so Travis uses containers.
sudo: false
# Tell Travis to shut up.
notifications:
email: false
branches:
except:
- master
# Make the gradle wrapper executable.
before_install:
- chmod +x gradlew
# Setup the workspace.
install:
- ./gradlew setupCIWorkspace -S
# Tell Travis to build the project.
script:
- ./gradlew build -S
# So the cache doesn't get repacked every time.
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
# Cache libs, as to improve speed.
cache:
directories:
# The libs is up to debate...
#- ./libs
- $HOME/.gradle/caches
# But gradle is not.
- $HOME/.gradle/wrapper