You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2018/12/05 17:41:25 UTC

[cordova-node-xcode] branch master updated: Introduce .travis.yml (#19)

This is an automated email from the ASF dual-hosted git repository.

brodybits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-node-xcode.git


The following commit(s) were added to refs/heads/master by this push:
     new dc4438a  Introduce .travis.yml (#19)
dc4438a is described below

commit dc4438adf653a855f8548228c686d7fc5768a4c8
Author: Chris Brody <ch...@gmail.com>
AuthorDate: Wed Dec 5 12:41:21 2018 -0500

    Introduce .travis.yml (#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 <ch...@gmail.com>
    Co-authored-by: Darryl Pogue <da...@dpogue.ca>
    Co-authored-by: Audrey So <au...@apache.org>
    Co-authored-by: filmaj <ma...@gmail.com>
    Co-authored-by: Steve Gill <st...@gmail.com>
---
 .travis.yml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..ec47926
--- /dev/null
+++ b/.travis.yml
@@ -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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org