forked from GrowthcraftCE/Growthcraft-1.12
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
48 lines (40 loc) · 763 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
45
46
47
48
language: java
sudo: false
jdk:
- openjdk8
dist: trusty
addons:
sonarcloud:
organization: "growthcraftce"
token:
secure: "0dff37f87344985cef77db78d7736b3792bfbdc1"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.sonar/cache
- $HOME/.m2/repositor
- .gradle
before_install:
# ensure we have ruby
- ruby --version
- chmod +x ./gradlew
install: ./gradlew setupCIWorkspace -S
script:
- ./gradlew build
- sonar-scanner
- ls -la build/libs
git:
depth: false
deploy:
provider: releases
api_key: $GITHUB_OAUTH
file_glob: true
file:
- "checksums.txt"
- "build/libs/growthcraft-*.jar"
skip_cleanup: true
on:
tags: true