forked from GrowthcraftCE/Growthcraft-1.7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (39 loc) · 979 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
43
44
language: java
sudo: false
jdk:
- openjdk7
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
# ensure we have ruby
- ruby --version
# fetch 3rd party apis and such
- git submodule update --init
- chmod +x gradlew
install: ./gradlew setupCIWorkspace -S
script: |
./gradlew build &&
ruby tools/split_jars.rb &&
ls -la build/libs &&
ls -la build/packages
# Deploy the artifacts back to GitHub
deploy:
provider: releases
api_key: $GITHUB_OAUTH
file_glob: true
file:
- "build/libs/growthcraft-*-complete.jar"
- "build/libs/growthcraft-*-api.jar"
- "build/libs/growthcraft-*-dev.jar"
- "build/libs/growthcraft-*-javadoc.jar"
- "build/libs/growthcraft-*-sources.jar"
# separate jars
- "build/packages/growthcraft-*-complete-*.jar"
- "build/packages/growthcraft-*-dev-*.jar"
skip_cleanup: true
on:
tags: true