Skip to content

Commit

Permalink
Introduce .travis.yml (alunny#19)
Browse files Browse the repository at this point in the history
from cordova-common, with some changes

Testing of this package on old Node.js versions is included,
since some non-Cordova users may still expect this to work.

nvm install --latest-npm is used for Node.js 0.8, as long as needed;
thanks for guidance:
* https://stackoverflow.com/questions/9755841/how-can-i-change-the-version-of-npm-using-nvm/47519162#47519162
* https://github.com/browserify/browserify/blob/master/.travis.yml

Co-authored-by: Christopher J. Brody <chris.brody@gmail.com>
Co-authored-by: Darryl Pogue <darryl@dpogue.ca>
Co-authored-by: Audrey So <audreyso@apache.org>
Co-authored-by: filmaj <maj.fil@gmail.com>
Co-authored-by: Steve Gill <stevengill97@gmail.com>
  • Loading branch information
5 people authored Dec 5, 2018
1 parent 91476c3 commit dc4438a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: node_js
sudo: false

git:
depth: 10

node_js:
- 0.8
- 0.10
- 0.12
- 4
- 6
- 8
- 10

install:
- nvm --version
- node --version
- npm --version
# remaining install steps can be removed once we drop Node.js 0.8 support:
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.8" ] ; then nvm install --latest-npm 0.8 ; fi'
- npm install
- node --version
- npm --version


script:
- npm test

0 comments on commit dc4438a

Please sign in to comment.