added travis and appveyor
authorSteve Gill <stevengill97@gmail.com>
Tue, 19 Jul 2016 17:42:29 +0000 (10:42 -0700)
committerSteve Gill <stevengill97@gmail.com>
Tue, 19 Jul 2016 23:47:03 +0000 (16:47 -0700)
.travis.yml [new file with mode: 0644]
appveyor.yml [new file with mode: 0644]
spec/create.spec.js

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..7aac204
--- /dev/null
@@ -0,0 +1,12 @@
+language: node_js
+sudo: false
+node_js:
+  - "0.10"
+  - "0.12"
+  - "4.2"
+  - "5.4"
+  - "6.0"
+install: 
+    - npm install
+script:
+    - npm test
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644 (file)
index 0000000..c9b8cf9
--- /dev/null
@@ -0,0 +1,12 @@
+# appveyor file
+# http://www.appveyor.com/docs/appveyor-yml
+
+install:
+  - npm install
+
+build: off
+
+test_script:
+  - node --version
+  - npm --version
+  - npm test
index 7bd493f..d58986f 100644 (file)
@@ -105,6 +105,7 @@ describe('create end-to-end', function() {
     });
 
     function checkProject() {
+        console.log('hi');
         // Check if top level dirs exist.
         var dirs = ['hooks', 'platforms', 'plugins', 'www'];
         dirs.forEach(function(d) {
@@ -189,6 +190,7 @@ describe('create end-to-end', function() {
         // Call cordova create with no args, should return help.
         Q()
             .then(function() {
+                console.log('creating proj');
                 // Create a real project
                 return create(project, appId, appName, configGit);
             })
@@ -205,6 +207,8 @@ describe('create end-to-end', function() {
         Q()
             .then(function() {
                 // Create a real project
+                console.log('creating proj2');
+                console.log(project, appId, appName, configNPM);
                 return create(project, appId, appName, configNPM);
             })
             .then(checkProject)
@@ -213,7 +217,7 @@ describe('create end-to-end', function() {
                 expect(err).toBeUndefined();
             })
             .fin(done);
-    });
+    }, 10000);
     
     it('should successfully run with template not having a package.json at toplevel', function(done) {
         // Call cordova create with no args, should return help.