Skip to content
Permalink
Browse files
added travis and appveyor
  • Loading branch information
stevengill committed Jul 19, 2016
1 parent 2e36fd6 commit 32fc3e88fbdf6f46828e6f69f29e1ba7b0f4f600
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
@@ -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
@@ -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
@@ -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.

0 comments on commit 32fc3e8

Please sign in to comment.