-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
66 lines (66 loc) · 1.77 KB
/
.travis.yml
File metadata and controls
66 lines (66 loc) · 1.77 KB
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
language: java
jdk:
- oraclejdk8
- openjdk8
# Using only Java 8 to compile the build because...
# 1) Java 6 destroys absolutely everything
# 2) Java 7 (openjdk) doesn't trust Gradle's certificate for whatever reason
# 3) It seems that Java 9 and ForgeGradle are having some little arguments
# Once the above reasons are fixed, we will resume building on those JDKs too
sudo: required
dist: trusty
addons:
hostname: OpenMods-Host
before_install:
- echo === SETTING ENVIRONMENT UP ===
- echo Before install...
- echo Updating submodules...
- git submodule update --init --recursive
- echo Setting up workspace...
- chmod +x gradlew
- ls -a -l -h --color
- echo Downloading Gradle...
- ./gradlew
- ./gradlew -version
install:
- echo Install...
- ./gradlew setupCIWorkspace
- ./gradlew assemble
before_script:
- echo === CHECKING ===
- echo Before script...
- echo Printing dependencies...
- ./gradlew dependencies
script:
- echo Script...
- ./gradlew check --info
after_success:
- echo === BUILD SUCCESSFUL ===
- echo Now building the artifacts
- ./gradlew build
after_failure:
- echo === BUILD FAILED ===
after_script:
- echo After script...
- echo === BUILD TERMINATED ===
notifications:
email:
recipients:
- thesilkminer@outlook.com
on_success: change
on_failure: always
slack:
on_success: always
on_failure: always
#Remove comments if allowed
# irc:
# channels:
# - "irc.esper.net#OpenMods"
# on_success: change
# on_failure: always
# template:
# - "[Travis] New build: %{repository}#%{build_number} (%{branch} - %{commit} by %{author})"
# - "[Travis] Message: %{message}"
# - "[Travis] Change view : %{compare_url}"
# - "[Travis] Build details : %{build_url}"
# use_notice: true