Crowd-sourced list of Travis CI hooks/scripts etc to level up your
travis encrypt "$SLACK_SUBDOMAIN:$SLACK_TRAVIS_TOKEN#updates" --add notifications.slack
travis encrypt "$TRAVIS_NOTIFICATION_EMAIL" --add notifications.email.recipients
Complete Node.js Version Matrix
Complete configuration for the different node.js versions one may need to support. With legacy versions allowed to fail.
# https://github.com/bevry/awesome-travis # https://github.com/nodejs/LTS sudo: false language: node_js node_js: - "0.8" # end of life - "0.10" # end of life - "0.12" # end of life - "4" # maintenance lts - "6" # active lts - "8" # active lts - "9" # current matrix: fast_finish: true allow_failures: - node_js: "0.8" - node_js: "0.10" - node_js: "0.12" cache: directories: - $HOME/.npm # npm's cache - $HOME/.yarn-cache # yarn's cache
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 -fsSL https://raw.githubusercontent.com/bevry/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 -fsSL https://raw.githubusercontent.com/bevry/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/bevry/awesome-travis/master/scripts/node-install.bash ./.travis/node-install.bash chmod +x ./.travis/node-install.bash
install: - ./.travis/node-install.bash
bevry/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