You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by da...@apache.org on 2016/10/24 10:35:31 UTC

[09/21] cordova-windows git commit: CB-11993 - windows platform doesn't test all node versions on appveyor and travis

CB-11993 - windows platform doesn't test all node versions on appveyor and travis

 This closes #201


Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/2dfdc16c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/2dfdc16c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/2dfdc16c

Branch: refs/heads/4.4.x
Commit: 2dfdc16c8aee03cfde262f8a87b3cf4d4bad77f8
Parents: adddd08
Author: Shazron Abdullah <sh...@apache.org>
Authored: Sat Oct 15 00:33:00 2016 -0700
Committer: daserge <v-...@microsoft.com>
Committed: Thu Oct 20 20:54:55 2016 +0300

----------------------------------------------------------------------
 .travis.yml                  |  7 +++++++
 appveyor.yml                 |  8 ++++++++
 spec/unit/deployment.spec.js | 14 ++++++++++++++
 3 files changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/2dfdc16c/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 89d3468..dcbeeda 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,12 @@
 language: node_js
 sudo: false
+git:
+  depth: 10
+node_js:
+  - "0.10"
+  - "0.12"
+  - "4"
+  - "6"
 install:
     - npm install
     - npm install -g codecov

http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/2dfdc16c/appveyor.yml
----------------------------------------------------------------------
diff --git a/appveyor.yml b/appveyor.yml
index 808c28a..b8d1fea 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -19,7 +19,15 @@
 # appveyor file
 # http://www.appveyor.com/docs/appveyor-yml
 
+environment:
+  matrix:
+  - nodejs_version: "0.10"
+  - nodejs_version: "0.12"
+  - nodejs_version: "4"
+  - nodejs_version: "6"
+
 install:
+  - ps: Install-Product node $env:nodejs_version
   - npm install
 
 build: off

http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/2dfdc16c/spec/unit/deployment.spec.js
----------------------------------------------------------------------
diff --git a/spec/unit/deployment.spec.js b/spec/unit/deployment.spec.js
index 97365fb..b9a5959 100644
--- a/spec/unit/deployment.spec.js
+++ b/spec/unit/deployment.spec.js
@@ -29,6 +29,20 @@ var TEST_APP_PACKAGE_NAME = '"c:\\testapppackage.appx"',
 
 describe('The correct version of the app deployment tool is obtained.', function() {
 
+    var mockedProgramFiles = process.env['ProgramFiles(x86)'];
+
+    beforeEach(function() {
+        process.env['ProgramFiles(x86)'] = path.join('c:/Program Files (x86)');
+    });
+
+    afterEach(function() {
+        if (mockedProgramFiles) {
+            process.env['ProgramFiles(x86)'] = mockedProgramFiles;
+        } else {
+            delete process.env['ProgramFiles(x86)'];
+        }
+    });
+
     it('Provides an AppDeployCmdTool when 8.1 is requested.', function() {
 
         var tool = deployment.getDeploymentTool('8.1');


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