forked from FAForever/downlords-faf-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
90 lines (76 loc) · 2.57 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
language: java
#Can not be used any longer as travis moved to adoptjdk which as issues with our project
#jdk:
#-openjdk10
sudo: false
services:
- xvfb
install: true
env:
global:
- secure: "UVIbeoJpx9n0KSWHbpdWZuR4zeZfXw3JQBq2Zb1h0/j4uREfXWiGFuNVQBPjsdtYi2+LkecjJ/MgKWo+SS0SjsvTa/ZPkOXt4408H1qYgwVnvWoeL/g1QQ6T8ADNysl/4ZtJLnSp0WXYEBkfHYZJD++vgDwkpVhnCLVzSFVAHls="
before_install:
#JDK defines the directory to store the jdk in
- export JDK="openjdk10"
#Installs the normal openjdk as this is not supported by travis itself
- chmod +x ./ci/installjdk.sh && sudo ./ci/installjdk.sh
- export JAVA_HOME="~/$JDK"
- export PATH="$JAVA_HOME/bin:$PATH"
- export JAVA_TOOL_OPTIONS="-Dprism.verbose=true -Dprism.order=sw -Djava.library.path=$HOME/openjfx/javafx-sdk-11/lib"
- export APP_VERSION=$([ -n "${TRAVIS_TAG}" ] && echo "${TRAVIS_TAG#*v}" || echo "${TRAVIS_BRANCH##*/}")
- export GITHUB_RELEASE_VERSION=$([ -n "${TRAVIS_TAG}" ] && echo "${TRAVIS_TAG}" || echo "${TRAVIS_BRANCH##*/}")
script:
- echo "$JAVA_HOME"
- chmod +x ./ci/build.sh && ./ci/build.sh
- chmod +x ./ci/test.sh && ./ci/test.sh
- chmod +x ./ci/test-report.sh && ./ci/test-report.sh
after_success:
- if [ -n "${TRAVIS_TAG}" ]; then chmod +x ./ci/github-release.sh && ./ci/github-release.sh; fi
after_failure:
- cat /home/travis/build/FAForever/downlords-faf-client/hs_err_pid*.log
deploy:
provider: releases
api_key: ${gitHubToken}
file_glob: true
file:
- build/install4j/*.exe
- build/install4j/*.zip
- build/install4j/*.gz
- build/install4j/*.deb
- build/install4j/*.rpm
skip_cleanup: true
name: ${GITHUB_RELEASE_VERSION}
draft: true
prerelease: true
# Doesn't yet work, see https://github.com/travis-ci/dpl/issues/155
# body: ${RELEASE_BODY}
# See https://github.com/travis-ci/travis-ci/issues/8248
target_commitish: ${TRAVIS_COMMIT}
tag_name: ${TRAVIS_TAG}
on:
tags: true
addons:
apt:
packages:
- unzip
- python3
coverity_scan:
project:
name: "micheljung/downlords-faf-client"
description: "A high quality re-implementation of the Forged Alliance Forever client"
notification_email: michel.jung89@gmail.com
build_command_prepend: "./gradlew clean"
build_command: "./gradlew build"
branch_pattern: coverity_scan
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/install4j/
- $HOME/openjfx/
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- /home/travis/build/FAForever/downlords-faf-client/build/cache/
- $HOME/.install4j8/
- ~/openjdk10