forked from quelea-projection/Quelea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (58 loc) · 3.02 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
sudo: required
if: tag IS blank
language: java
install: true
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/
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:
- oraclejdk9
script:
- "./gradlew -Dnightly=true -Dversionsuffix=CI-UNSTABLE clean dist --scan"
- PREVDIR="$(pwd)"
- cd $(mktemp -d)
- git clone https://berry120:${GH_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
- git push || echo "PR build, no problem"
- cd $PREVDIR
before_deploy:
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- export GIT_TAG=CI-RELEASE
- git tag -f $GIT_TAG -a -m "CI Build $TRAVIS_BUILD_NUMBER - not to be used in production."
- git push --delete https://${GH_TOKEN}@github.com/quelea-projection/Quelea CI-RELEASE
- git push -q https://${GH_TOKEN}@github.com/quelea-projection/Quelea --tags
deploy:
- provider: releases
api_key:
secure: qhNYAPbla5Ia0wJVzECCqW/1rxkkWXrGkTus2eluxbmJXLDpdViQBCveymTEnH+JM3PXMPXATdY7u4QMZtuc7ixozcEjl5y28TfUQIdvAEA2kX6yAUIGADz72Vfk75SRZQyhW1ZCkS7DI5Sz+uQUFhjG3s7EnNkEmWmXWOC/9bmWZnGqGZ4K9syI0yyrp4fJqvgIh9EauZeIzNY5d7vW0IJ6hAMxdT7LpbrbD3Fl0ymHVFRJU253cmFA76XT0Km9b0TJsTJa1CxZmCaVea6ip+LG7WG0cdP3Rj4UPUnPvmW4YUOWafCDn4Td/K4X/IC3QQI9JojnIIxe+SIr0fBJ6Pah4YokPG1LhONe0AiDtz25g3x9L7GiFLvPJcGhtNIy+ALqkoXhNbyK3b3fpOUV3rvthDIK3ZbnywNPA0vt4W5WMMy9d3H9lYMcTswHAfdEfx6GJ+h/RXD0F3ylvBQjPv6G3oCieV/KLlVpSXxMTkDWeZY/RZ/cgOEMvHimRIfJzHcc6PYUc0rYQjGBASIR4Kaw/JlnastRhFOH5SyEnRNqtKX85IUqowOCF7het8P8zel37bS/8MQK6RRpivg0AWr1WnHiSdokQFtlyLS8mXO4m+kyxTd92q2ZUu3X7/rcpe21fYxFGMpUshTQHaVg0hN3Mmr1rmIx5hrsNcS5G/o=
file_glob: true
file: dist/standalone/*
skip_cleanup: true
prerelease: true
overwrite: true
target_commitish: $TRAVIS_COMMIT
env:
global:
secure: B2CmIfRyqbeM0xDmxsKqfhvbx4Gr2sSrG9ZtkGWs0HkwmPtoWqqF6bibdj4nSArqTxaNGoHvlGuv2Psw7YK3cbGErHhAlDBzf9QiHkSYXN0NlYw3kH9k+O2h5lR7H8RwTXFxrTaoQSaXXpKQTytYDFh/fJEakIj7+tWTHa6WPDN0FmOjEvcij50WQfItW1/G3evQ5/AvbKF8DI6U9jNu66PEyDMVoTE4aLedoL7CTZRiA+tllttmIgy5z9ONzCr/hqamNfVz71/t+H7UkY2Z0WhRYydpp+6ck53uNzMwwBcPB4hz4Z1bvA7py78wewRTo+8TGWjRG5qr6DWY10sm9s60FU4E8m53gpA+rTPOTMckULFDZ9A7rYyFNTnKWf+3tvO98VoFt5XI9c329rC3stu1guhjTiPNE+tMJ/q762tVBFh9C9o/77HqyJDNbZo4rifDus2Sb4JlJEQdFlhb6oVJ2nz/Z+6qPbGbvjjvUwoul3lREc2D5VSssgdVJ7gTP9UwQhOqCGaYqhJiW6lKTuIDyzZz+Twp3WDTqbmTnu/Yxx6ieHkSDFFGjWtJrrA2qjrwwqjcUnzt2G76GfWiRNVXdRWd8FkCcY/pykWd4ZQZHSSdcKgANYYcTnbVFfrrODYS2yRWX7c2O4ysnyH3B3KY4P7Csq0Eg36RcNTysPE=