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

2016-10-24 Thread daserge
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: a08
Author: Shazron Abdullah 
Authored: Sat Oct 15 00:33:00 2016 -0700
Committer: daserge 
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-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org



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

2016-10-15 Thread shazron
Repository: cordova-windows
Updated Branches:
  refs/heads/master 1417b932c -> 57de5e0cf


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/57de5e0c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/57de5e0c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/57de5e0c

Branch: refs/heads/master
Commit: 57de5e0cf43119c4bbed60440fd4ec299a4a389e
Parents: 1417b93
Author: Shazron Abdullah 
Authored: Sat Oct 15 00:33:00 2016 -0700
Committer: Shazron Abdullah 
Committed: Sat Oct 15 01:20:15 2016 -0700

--
 .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/57de5e0c/.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/57de5e0c/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/57de5e0c/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-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org