You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2019/07/22 09:37:05 UTC

[cordova-js] branch master updated: Add platforms used during tests as devDependencies (#207)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 498d532  Add platforms used during tests as devDependencies (#207)
498d532 is described below

commit 498d532577bcee4be4eab5b894de28dea718895d
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Mon Jul 22 11:36:59 2019 +0200

    Add platforms used during tests as devDependencies (#207)
---
 .travis.yml   | 6 ------
 appveyor.yml  | 7 -------
 package.json  | 2 ++
 test/build.js | 4 +---
 4 files changed, 3 insertions(+), 16 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index f73bcdf..fdc2e3f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,10 +9,4 @@ node_js:
   - 12
 
 install:
-  - cd ..
-  - git clone https://github.com/apache/cordova-android --depth 10
-  - git clone https://github.com/apache/cordova-ios --depth 10
-  - git clone https://github.com/apache/cordova-windows --depth 10
-  - git clone https://github.com/apache/cordova-browser --depth 10
-  - cd cordova-js
   - npm install
diff --git a/appveyor.yml b/appveyor.yml
index 9032c6b..8c09bfd 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -8,13 +8,6 @@ environment:
 
 install:
   - ps: Install-Product node $env:nodejs_version
-
-  - cd ..
-  - git clone https://github.com/apache/cordova-android --depth 10
-  - git clone https://github.com/apache/cordova-ios --depth 10
-  - git clone https://github.com/apache/cordova-windows --depth 10
-  - git clone https://github.com/apache/cordova-browser --depth 10
-  - cd cordova-js
   - npm install
 
 build: off
diff --git a/package.json b/package.json
index 5d55ae4..e088c30 100644
--- a/package.json
+++ b/package.json
@@ -74,6 +74,8 @@
     "globby": "^9.2.0"
   },
   "devDependencies": {
+    "cordova-android": "^8.0.0",
+    "cordova-ios": "^5.0.0",
     "eslint": "^5.16.0",
     "eslint-config-semistandard": "^13.0.0",
     "eslint-config-standard": "^12.0.0",
diff --git a/test/build.js b/test/build.js
index f03236a..5c2a007 100755
--- a/test/build.js
+++ b/test/build.js
@@ -25,11 +25,9 @@ function buildCordovaJsTestBundle (bundlePath) {
 }
 
 function collectTestBuildModules () {
-    const pkgRoot = path.join(__dirname, '..');
-
     // Add platform-specific modules that have tests to the test bundle.
     const platformModules = ['android', 'ios'].map(platform => {
-        const platformPath = path.resolve(pkgRoot, `../cordova-${platform}`);
+        const platformPath = path.dirname(require.resolve(`cordova-${platform}/package`));
         const modulePath = path.join(platformPath, 'cordova-js-src');
         const modules = collectModules(modulePath);
 


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