-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
71 lines (64 loc) · 1.71 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: java
sudo: required
jdk:
- oraclejdk8
env:
global:
- GITWEBPAGES_USER="Elix-x"
- GITWEBPAGES_NAME="EXCore"
- GITWEBPAGES_GROUP="code/elix_x/excore"
- CURSEFORGE_NAME="EXCore"
- CURSEFORGE_PROJECTID="233180"
before_install:
- sudo apt-get update && sudo apt-get install oracle-java8-installer
- java -version
- chmod +x install.sh
- chmod +x githubreleases.sh
- chmod +x gitwebpages.sh
- chmod +x curseforge.sh
- export GRADLE_HOME=$(./install.sh "https://downloads.gradle.org/distributions/" "gradle-4.0-bin.zip" "gradle-4.0")
- export PATH=$GRADLE_HOME/bin:$PATH
- export GROOVY_HOME=$(./install.sh "https://dl.bintray.com/groovy/maven/" "apache-groovy-binary-2.4.7.zip" "groovy-2.4.7")
- export PATH=$GROOVY_HOME/bin:$PATH
- gradle setupCIWorkspace
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
deploy:
- provider: script
script: /bin/bash ./githubreleases.sh "obfuscate"
skip_cleanup: true
on:
tags: true
- provider: releases
api_key:
secure: $GITACCESSTOKEN
file_glob: true
file: "build/libs/*.jar"
skip_cleanup: true
on:
tags: true
- provider: script
script: /bin/bash ./githubreleases.sh "deobfuscate"
skip_cleanup: true
on:
tags: true
- provider: script
script: ls build/libs/*
skip_cleanup: true
on:
tags: true
- provider: script
script: /bin/bash ./gitwebpages.sh
skip_cleanup: true
on:
tags: true
- provider: script
script: /bin/bash ./curseforge.sh
skip_cleanup: true
on:
tags: true