This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
forked from qooxdoo/qooxdoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (72 loc) · 2.95 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
sudo: false
language: php
php: 5.6
addons:
apt:
packages:
- python-sphinx
env:
- QXBROWSER=Firefox QXVERSION=latest
- QXBROWSER=Firefox QXVERSION=esr-latest
- QXBROWSER=Firefox QXVERSION=beta-latest
- QXBROWSER=Chrome_travis_ci QXVERSION=stable
- QXBROWSER=Chrome_travis_ci QXVERSION=beta
#- QXBROWSER=Chrome_travis_ci QXVERSION=unstable
- secure: vW8wdbY/DmRITaFkQix8PUuE3jiwy2Yj0nn+k+yNqcwPde19ObQBq0rHJEiO5AJOBuNiWaie2n8sQQ6ceK72pU1IbIntPsztY/EFKP6x009wjmiLoifsVEGNP1kxLgFOnvCmlGjTIyGsqse5UsVt8HZs2jHK8xkkedTehuDNxtI=
cache:
directories:
- "/tmp/qx5.1"
- "`pwd`/texlive"
before_install:
- gem install sass -v 3.4.20
- curl -L https://github.com/raphink/travis-texlive/releases/download/2015-07-14_05/texlive.tar.xz | tar xJC `pwd`
install:
- "./.travis/browser-setup.sh"
- export CHROME_BIN=`pwd`/chrome/google-chrome
- export PATH=`pwd`/firefox:`pwd`/texlive/bin/x86_64-linux:$PATH
- npm install
- grunt setup
- cd framework
- if [ "$QXBROWSER" != "" ]; then ./generate.py -sI test-source; fi
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- php -S 0.0.0.0:31323 &> /dev/null &
- sleep 3
script:
- "../.travis/test-framework.sh"
after_script:
- pkill -f 'php -S 0.0.0.0:31323' &> /dev/null
after_success:
- cd $TRAVIS_BUILD_DIR
- |
declare -r SSH_FILE="$(mktemp -u $HOME/.ssh/XXXXX)"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Decrypt the file containing the private key
# (Note: this is the same as what is generated by the Travis CLI at step 2.5)
openssl aes-256-cbc \
-K $encrypted_774cfba6afab_key \
-iv $encrypted_774cfba6afab_iv \
-in ".travis/github_deploy_key.enc" \
-out "$SSH_FILE" -d
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Enable SSH authentication
chmod 600 "$SSH_FILE" \
&& printf "%s\n" \
"Host github.com" \
" IdentityFile $SSH_FILE" \
" LogLevel ERROR" >> ~/.ssh/config
- "./.travis/make-release-sdk.sh && ./.travis/build-site.sh && ./.travis/deploy.sh"
before_deploy:
- export RELEASE_PKG_FILE=$(ls dist/*.zip)
- echo "deploying $RELEASE_PKG_FILE to GitHub releases"
deploy:
provider: releases
api_key:
secure: ekeMQx+Mq7ydMyR2YPmhhUP7Ai8qlfi5BJ1q5E0kSKb4F73OUzA0cyFlTpdcI+zbcYWHpxAHbZXHz7VtpUN7lRcCMW3WGdpW5FjZAUKxR253Nysz39rdGS0CC4G3RKRyLmaOwqVldRKruY1rea3a92zPud2i7NrjgSN8riDZGm9SHbnv8xxyWfa+aC1FyUfi11kJquwjhlKHFvQ4Mt0w1KUP7kk+e1Nt2ZPDI5XMFq94bIx412dBkKrI5UAEQcVSmhZ/uCzJVZ6kCd266z0uhbJ4MVagiB+M6Xkrs1//yeEL87qj0T9viFRUxZVlh1ORs+ltRsnXIVCzpP6ul/rrhD2y8mz4vm5EQBgFVNuBWLufShONR0iOSLv2/Up4D2BVgqy5e4oxG6pEO9tzOgXnSm/SdByL+a4YxQiqZ3MuWxbGCuHk/5Lmb5GH7qJInyoJRw4nQXbeIM/s62ReByjc6BHmst3gvtjhvwh/x/q3eaGxAkuSc+AHA7x3S0FPguTQxlfYA3iYjCVKzHLFQiROpshH0IxxXkF7G3qrdkdRLCbMTxdURFOZCpVetCUELaewzD8t2oJaGywyJF3Fm/izQEgKg03wjtqTfC/+DvE/Eno0lyw0pdtccSWDhRnIynbVI/1NBMFbPxCiTktAD5hCLIM4UaDnLth+ikxNWD4su/Y=
file_glob: true
file: "${RELEASE_PKG_FILE}"
skip_cleanup: true
on:
repo: qooxdoo/qooxdoo
tags: true