-
Notifications
You must be signed in to change notification settings - Fork 149
/
.travis.yml
70 lines (69 loc) · 3.32 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
os: linux
if: tag IS blank
language: java
dist: trusty
git:
lfs_skip_smudge: true
install:
- git lfs pull
addons:
apt:
packages:
- wine
- xvfb
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/
- .git/lfs
before_install:
- cd Quelea
- chmod +x gradlew
- chmod +x build-install.sh
- wget http://files.jrsoftware.org/is/5/innosetup-5.6.1.exe
- wineboot --update
- Xvfb :0 -screen 0 1024x768x16 &
- DISPLAY=:0.0 wine innosetup-5.6.1.exe /VERYSILENT /SUPPRESSMSGBOXES
jdk:
- oraclejdk11
jobs:
include:
- stage: build
script:
- "./gradlew -Dnightly=true -Dversionsuffix=CI-UNSTABLE clean dist"
- PREVDIR="$(pwd)"
- cd $(mktemp -d)
- git clone https://quelea-bot:${QBOT_TOKEN}@github.com/quelea-projection/quelea-projection.github.io.git ./repo
- cp $PREVDIR/dist/missinglabels.js repo/lang/
- cd repo
- ls -l lang/
- git add lang/missinglabels.js
- git commit -m "Update missing labels file" || ls -l
- if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_PULL_REQUEST == "false" ]; then git push; fi
- cd $PREVDIR
- stage: test
script:
- "./gradlew clean test"
before_deploy:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- export GIT_TAG=CI-RELEASE
- export RELEASE_DESCRIPTION="**CI Build $TRAVIS_BUILD_NUMBER - not to be used in production.**<br/>Quelea is also distributed as a Linux snap package. To install it, make sure snap is installed then run:<pre>sudo snap install --edge quelea</pre><h3>SHA256 hashes:</h3><table><tr><th>Windows x64</th><td>$(sha256sum dist/standalone/quelea-CI-UNSTABLE-x64-windows-install.exe | cut -d ' ' -f 1)</td></tr><tr><th>Crossplatform</th><td>$(sha256sum dist/standalone/quelea-CI-UNSTABLE-crossplatform-install.jar | cut -d ' ' -f 1 )</td></tr><tr><th>Mac</th><td>$(sha256sum dist/standalone/quelea-CI-UNSTABLE-mac.zip | cut -d ' ' -f 1 )</td></tr></table>"
- git tag -f $GIT_TAG -a -m "CI Build $TRAVIS_BUILD_NUMBER - not to be used in production."
- git push --delete https://quelea-bot:${QBOT_TOKEN}@github.com/quelea-projection/Quelea CI-RELEASE
- git push -q https://quelea-bot:${QBOT_TOKEN}@github.com/quelea-projection/Quelea --tags
deploy:
- provider: releases
token:
secure: UvpF9ALbHGsIFQv1SzH240WjdS6cZ/+sCbuGirMgtcIrtHCKd7p7ZfdGWRAtO4qxIY5Lu3QRuoT+oLMC1gJyF/pAq7CO53SDyJBwfACcQWrz1n5X5XJZngKwZGDVhVzTCqFWLpi1K/DWDj5jGv3kPj8RprZXZbSKqgQYXd2ZTe98c1irm45OY+IOJjlYd3AsWxjgseMSozj1t3iGzp0Y1b87OeV9494XtvT39d5t7Mozq2cP77gPFfQGWS8I4kTlAJtOK27ghkkyIciYTWln7+qZXSL1/wXQ09f4/yG1LFpsm1yaBn4qud8lxYaJXGVBGW9tH84l3v1+QUdD5aCX7kNoLbxbR388KwJPLshPw0Pu+wUPywiI3GDXUYFyotGEiy701qPSMrV/7N9TdLpeYaG5MRmJm81X9B8AY9soFpdpoB5XPz6XSxw1Tu4X+Sfccwn++q0hiLEW5KxA8ItF8LKVOhTDW3qlO440thPthJiBr+jzEUCGX6pxjFZqd788SfGFaqI03JsBrDoDg34nOqoOvoSi5CqkSemLYJVkG8euXZGcDVbDOpT9YH92Nv56NRKxsoEgQqjXR7XQR1MIhFmidBs6+BJ21hbAwy/WMPMDso8hGz306j3iWesv1DquYP4jo7u3LHhAYwLrttWcYlcqz+91sJfdeFPWNnIx3vI=
file_glob: true
file: dist/standalone/*
tag_name: $GIT_TAG
prerelease: true
overwrite: true
release_notes: $RELEASE_DESCRIPTION
target_commitish: $TRAVIS_COMMIT
edge: true