@@ -3,49 +3,22 @@ language: node_js
3
3
node_js :
4
4
- ' 0.10'
5
5
- ' 0.12'
6
+ before_install :
7
+ - npm install -g npm@latest
6
8
before_script :
7
9
- npm install grunt-cli -g
8
10
- export CI_BUILD_NUMBER=$(git rev-parse HEAD)
9
11
- if [ "${TRAVIS_NODE_VERSION}" = "0.12" ] && [ "${TRAVIS_REPO_SLUG}" = "modernizr-savage/Modernizr" ]; then export BROWSER_COVERAGE=true; fi
10
12
after_success :
11
- - python travis_after_all.py
12
- - export $(cat .to_export_back) &> /dev/null
13
13
- |
14
- # If all the tests pass in all the runtimes, make Travis
15
- # automatically download and execute the following script
16
-
17
- if [ "$BUILD_LEADER" == "YES" ]; then
18
- if [ "$BUILD_AGGREGATE_STATUS" == "others_succeeded" ]; then \
19
-
20
- # Clean up helper files
21
- rm -rf travis_after_all.py .to_export_back && \
22
-
23
- # The `update_site_branch.sh` script will run the build,
24
- # and if that generates changes, it will commit them to the
25
- # `master` branch:
26
- #
27
- # * ensuring that the content from the `gh-pages/` directory
28
- # is always in sync with the rest of the content
29
- #
30
- # * removing the need to execute the build step locally
31
- # everytime a change is made (especially in the case
32
- # of trivial changes such as typos)
33
- #
34
- # Note: The `update_site_branch.sh` script will only run
35
- # if the commit was made to the `master` branch.
36
-
37
- curl -sSL "https://raw.githubusercontent.com/h5bp-bot/scripts/0.6.1/update_site_branch.sh" |
38
- bash -s -- --commands "grunt copy:gh-pages" \
39
- --commit-message "Hey server, this content is for you! [skip ci]" \
40
- --directory "gh-pages" \
41
- --distribution-branch "gh-pages" \
42
- --source-branch "master";
43
- fi
44
- fi
45
-
14
+ # Automatically update the content from the `gh-pages` branch
15
+ $(npm bin)/update-branch --commands "grunt copy:gh-pages" \
16
+ --commit-message "Hey server, this content is for you! [skip ci]" \
17
+ --directory "gh-pages" \
18
+ --distribution-branch "gh-pages" \
19
+ --source-branch "master"
46
20
script :
47
21
- grunt test
48
- - curl -sSLo travis_after_all.py https://raw.github.com/dmakhno/travis_after_all/master/travis_after_all.py
49
22
notifications :
50
23
webhooks :
51
24
- http://patrickkettner.com:8080/savage/travis
0 commit comments