From d52ca93ba64a79422e65ddeaef633e2c21f38bdb Mon Sep 17 00:00:00 2001 From: Vladimir Kotikov Date: Tue, 9 Sep 2014 09:59:34 +0400 Subject: [PATCH] CB-7493 Adds test-build command to package.json --- .travis.yml | 5 +++++ package.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..e9919cdf --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +language: android +install: npm install +script: + - npm test + - npm run test-build \ No newline at end of file diff --git a/package.json b/package.json index 8a6ab09c..a61927a8 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "apache" ], "scripts": { - "test": "jasmine-node --color spec" + "test": "jasmine-node --color spec", + "test-build": "rm -rf \"test create\"; ./bin/create \"test create\" com.test.app Test && \"./test create/cordova/build\" && rm -rf \"test create\"" }, "author": "Apache Software Foundation", "license": "Apache version 2.0",