forked from OpenCubicChunks/CubicChunks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (29 loc) · 827 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
sudo: required
dist: trusty
language: java
cache:
directories:
- $HOME/.gradle
jdk:
- openjdk8
- oraclejdk8
env: GRADLE_OPTS="-Xmx2500M"
before_install:
# workaround to get "git describe" working
- git fetch --unshallow --tags
- git describe
- ./gradlew setupCiWorkspace
#setupCIWorkspace is needed because of https://github.com/MinecraftForge/ForgeGradle/issues/410
# clean because of https://github.com/SpongePowered/MixinGradle/issues/4
script: ./gradlew clean build
deploy:
- provider: script
script: "./gradlew clean publish"
skip_cleanup: true
on:
repo: OpenCubicChunks/CubicChunks
# check the branch with regex to match master and MC_version branches
condition: $TRAVIS_BRANCH =~ ^(master|MC_([0-9]+\.)+[0-9]+)$
all_branches: true
notifications:
email: false