forked from h5bp/server-configs-apache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (60 loc) · 2.05 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
# For more information about the configurations used
# in this file, please see the Travis CI documentation:
# http://docs.travis-ci.com
after_success:
# Temporary workaround for:
# https://github.com/travis-ci/travis-ci/issues/929
- python travis_after_all.py
- export $(cat .to_export_back) &> /dev/null
- |
# If all the tests pass in all the runtimes, make
# Travis automatically download and execute the following
if [ "$BUILD_LEADER" == "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" == "others_succeeded" ]; then \
# Clean up helper files
rm -rf travis_after_all.py .to_export_back && \
# Commit any changes generated by the build process
curl -sSL "https://raw.githubusercontent.com/h5bp-bot/scripts/0.6.1/commit_build_changes.sh" |
bash -s -- --branch "master" \
--commands "npm install && npm run build" \
--commit-message "Update the generated content [skip ci]";
fi
fi
before_script:
- curl -sSLo travis_after_all.py https://raw.github.com/dmakhno/travis_after_all/master/travis_after_all.py
- ./bin/setup/setup.sh
env:
global:
- BUILD_DIR="$TRAVIS_BUILD_DIR"
- secure: "KdKjkn16idVwU/znf7HLztR8sq0NX7i1qWEbB7y96zdSH9NYzN2KndcjkjBfhK6qawVJ3mDVyYCr46VRalJR+AlnbwDddGKJ9+Aclk61uf6PUuLF6gHr2kwpGWpvl9zgdFKlLbRqd2lRBJw5DC3ene5qPZ2G22Ymkhdw/PTHkMY="
git:
depth: 5
language: node_js
matrix:
include:
# Tests for Apache 2.2.x
- env:
- APACHE_VERSION="2.2.x"
node_js: "iojs"
script:
- sudo service apache2 restart
- npm test
- env:
- APACHE_VERSION="2.2.x"
node_js: "0.12"
script:
- sudo service apache2 restart
- npm test
# Tests for Apache 2.4.x
- env:
- APACHE_VERSION="2.4.x"
node_js: "iojs"
script:
- sudo /usr/local/apache2/bin/apachectl start
- npm test
- env:
- APACHE_VERSION="2.4.x"
node_js: "0.12"
script:
- sudo /usr/local/apache2/bin/apachectl start
- npm test