forked from Modernizr/Modernizr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (53 loc) · 2.9 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
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
before_script:
- npm install grunt-cli -g
- export CI_BUILD_NUMBER=$(git rev-parse HEAD)
- if [ "${TRAVIS_NODE_VERSION}" = "0.12" ] && [ "${TRAVIS_REPO_SLUG}" = "modernizr-savage/Modernizr" ]; then export BROWSER_COVERAGE=true; fi
after_success:
- 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 script
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 && \
# The `update_site_branch.sh` script will run the build,
# and if that generates changes, it will commit them to the
# `master` branch:
#
# * ensuring that the content from the `gh-pages/` directory
# is always in sync with the rest of the content
#
# * removing the need to execute the build step locally
# everytime a change is made (especially in the case
# of trivial changes such as typos)
#
# Note: The `update_site_branch.sh` script will only run
# if the commit was made to the `master` branch.
curl -sSL "https://raw.githubusercontent.com/h5bp-bot/scripts/0.6.1/update_site_branch.sh" |
bash -s -- --commands "grunt copy:gh-pages" \
--commit-message "Hey server, this content is for you! [skip ci]" \
--directory "gh-pages" \
--distribution-branch "gh-pages" \
--source-branch "master";
fi
fi
script:
- grunt test
- curl -sSLo travis_after_all.py https://raw.github.com/dmakhno/travis_after_all/master/travis_after_all.py
notifications:
webhooks:
- http://patrickkettner.com:8080/savage/travis
env:
global:
- secure: F5Xmkr+31YIXvtS1sqt2PDCI1CEQN/zpoJBKzqYXIUZVLvyH/4zVxRRa2LYleLRSIc+YZfzE3YZjfwWUC9vMcEREk380gRwSot9mhVbCOmNd1qhrFocSAzpI0fnwPUMfQknhE/mLuXnFQ0OAJBFzVCFOHHhKTlL8q+I7dNUhErc=
- secure: bSjU9XMTm3bmROc4rNERCPDgoa30dAJTJg16o3yYGjCyLhl6JdXSgh53rFu4IKg8hT4wvZB9/X7wiAk8s5Md+U1q746meTvNe0D6SCmgjtvaqJOY0Gina+MvRgYtqfYZByapotIO6+zy9bURixIQbo1ZIxeuux/0glGYG8yPr6k=
- secure: mBLGOwhFac+42FrM5FMNxsEgHIBnhVzBywuusyIOl3HDF6AU6pMb1KObVdmWzvUWnloQsh8d0xJ36YSq0upJ1kAs/PyAC1mJJgWvTjojBdkqeEndLbupmB1UT4Zh61Gzaln8dueWqVTRM9em0aHzPSKs+sSB7PpOeWzWL+19cOc=
- secure: GijLoFIOjQ0elKMTLa58uS1Cgti+VzBOYXOPKKLikD8IAyNq2LRoochlYopAI2wAEMmX5UZAUpPiziyVGDCNmaDxCk4hmaG/WEFAHByu4PIcQaRGdqYT/kiGsn5vvKadHv34R2Fs3A0q1Fzx5mpAOJwKpANNvOHcHIESlvWzPvM=
- secure: HAztDqXTzRcsZ8StX4rDZiY2116SBQFWF9faf5/pl5UByj55lk6jYuC+DCB5ZHeRvmndMNjGqHLS3AvQZ5wMRVOlHfFMZdXGu+oONjFEWbZ9SHU5YNE8oRWIHB7XsFafvQpyAshReV1ogUj08cKFPC60EG8K3drxH2ybXcSpVi0=