forked from ezsystems/PlatformUIBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (27 loc) · 971 Bytes
/
.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
language: node_js
node_js:
- "0.10"
env:
matrix:
- CODE="php"
BEFORE_GLOBAL="sudo ./bin/travis/setupphp.sh"
BEFORE_LOCAL="./bin/travis/composer.sh"
TEST_CMD="./vendor/phpunit/phpunit/phpunit -c phpunit.xml"
AFTER_SUCCESS="echo \"After success\""
- CODE="js"
BEFORE_GLOBAL="npm install -g grunt-cli grover bower"
BEFORE_LOCAL="./bin/travis/localjsdeps.sh"
TEST_CMD="grunt test"
AFTER_SUCCESS="sh bin/travis/generate_apidoc.sh"
global:
secure: "aNPcXEtgV3Q/GVCH+FvITm/gLXcNyFl7YiOT9JcqZUwYXsT2zi8g4BcwBgDtpbSmi8NSCsEWONNxxDM10BqCPzfkiFD2I0cPHXVxmJ3cmOqySci5JvysEd+RU6gnatCxqzAJYDH2BanfPyu+yPwrSIgWdkPuvNhydNJFUrwsinw="
# test only master (+ Pull requests)
branches:
only:
- master
before_script:
- $BEFORE_GLOBAL
- $BEFORE_LOCAL
script: $TEST_CMD
after_success:
- if [ $TRAVIS_PULL_REQUEST = "false" ] ; then $AFTER_SUCCESS ; fi