Crowd-sourced list of Travis CI hooks/scripts etc to level up your .travis.yml file
travis encrypt "$SLACK_SUBDOMAIN:$SLACK_TRAVIS_TOKEN#updates" --add notifications.slacktravis encrypt "$TRAVIS_NOTIFICATION_EMAIL" --add notifications.email.recipientsComplete configuration for the different node.js versions one may need to support. With legacy versions allowed to fail.
# https://github.com/balupton/awesome-travis
sudo: false
language: node_js
node_js:
- "0.8" # end of life
- "0.10" # end of life
- "0.12" # maintenance
- "4" # lts
- "6" # lts
- "7" # stable
matrix:
fast_finish: true
allow_failures:
- node_js: "0.8"
- node_js: "0.10"
cache:
directories:
- $HOME/.npm # npm's cache
- $HOME/.yarn-cache # yarn's cacheThe scripts directory contains scripts you can use.
The scripts in this repository are their own files, which the latest are fetched. E.g.
install:
- eval "$(curl -s https://raw.githubusercontent.com/balupton/awesome-travis/master/scripts/node-install.bash)"You probably want to change the master to the the current commit hash. For instance:
install:
- eval "$(curl -s https://raw.githubusercontent.com/balupton/awesome-travis/some-commit-hash-instead/scripts/node-install.bash)"Or you could even download it into a .travis folder for local use instead:
mkdir -p ./.travis
wget https://raw.githubusercontent.com/balupton/awesome-travis/master/scripts/node-install.bash ./.travis/node-install.bash
chmod +x ./.travis/node-install.bashinstall:
- ./.travis/node-install.bashbevry/basedgenerates your project, including your.travis.ymlfile, using this awesome list
Send pull requests for your scripts and config nifties! Will be awesome!
Although, avoid changing header titles and file names, as people may reference them when they use parts.
Public Domain via The Unlicense