-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
51 lines (45 loc) · 1.14 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
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
- gem install bundler
- bundle install
# fetch 3rd party apis and such
- git submodule update --init
- chmod +x ./gradlew
install: ./gradlew setupCIWorkspace -S
script:
- ./gradlew build
- bundle exec ./tools/split_jars.rb
- ls -la build/libs
- ls -la build/packages
- bundle exec ./tools/checksum_builds.rb | tee ./checksums.txt
- bundle exec ./tools/lang_check.rb
- bundle exec ./tools/attribution_cross_check.rb
# Deploy the artifacts back to GitHub
deploy:
provider: releases
api_key: $GITHUB_OAUTH
file_glob: true
file:
- "checksums.txt"
- "build/libs/growthcraft-*-complete.jar"
- "build/libs/growthcraft-*-api.jar"
- "build/libs/growthcraft-*-deobf.jar"
- "build/libs/growthcraft-*-javadoc.jar"
- "build/libs/growthcraft-*-sources.jar"
# separate jars
- "build/packages/growthcraft-*-complete-*.jar"
- "build/packages/growthcraft-*-deobf-*.jar"
skip_cleanup: true
on:
tags: true