forked from ImagineScape/SkyBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (42 loc) · 1.1 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
# Tell Travis which branches to build.
branches:
except:
- /^(?i:dev)-.*$/
# Tell Travis this is a Java project.
language: java
# Tell Travis this is a Java 8 project.
matrix:
include:
- jdk: openjdk8
# Tell Travis we want container-based builds.
sudo: false
# Use the gradle wrapper for 2.7 instead of default 2.2
before_install:
- chmod +x gradlew
# Prepare the workspace.
install:
- ./gradlew buildEnvironment -S
# Build the Project.
script:
- ./gradlew build -S
# Push success to CurseForge for release.
# after_success:
# - ./gradlew curse -S
# Removed for ForgeGradle 2
# Clean up after Gradle
env:
global:
TERM=dumb
# So the cache doesn't get rebuilt every time.
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -f $HOME/.gradle/caches/minecraft/ForgeVersion.json
- rm -f $HOME/.gradle/caches/minecraft/ForgeVersion.json.etag
- rm -rf $HOME/.gradle/caches/minecraft/deobfedDeps
# Cache libs, as to improve speed.
cache:
directories:
- ./libs
- $HOME/.gradle/caches
# So gradle isn't downloaded every time.
- $HOME/.gradle/wrapper