Skip to content

Commit dc4438a

Browse files
Chris Brodydpogueaudreysofilmajstevengill
authored
Introduce .travis.yml (alunny#19)
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 <[email protected]> Co-authored-by: Darryl Pogue <[email protected]> Co-authored-by: Audrey So <[email protected]> Co-authored-by: filmaj <[email protected]> Co-authored-by: Steve Gill <[email protected]>
1 parent 91476c3 commit dc4438a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: node_js
2+
sudo: false
3+
4+
git:
5+
depth: 10
6+
7+
node_js:
8+
- 0.8
9+
- 0.10
10+
- 0.12
11+
- 4
12+
- 6
13+
- 8
14+
- 10
15+
16+
install:
17+
- nvm --version
18+
- node --version
19+
- npm --version
20+
# remaining install steps can be removed once we drop Node.js 0.8 support:
21+
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.8" ] ; then nvm install --latest-npm 0.8 ; fi'
22+
- npm install
23+
- node --version
24+
- npm --version
25+
26+
27+
script:
28+
- npm test

0 commit comments

Comments
 (0)