Permalink
Browse files

[ALOY-1167] exit with status code of 1 on errors with failing tests

  • Loading branch information...
1 parent ba6a3fa commit 75d55f5bf574ed7b5aa321c156206bf8c652228e @skypanther skypanther committed Oct 21, 2014
Showing with 62 additions and 3 deletions.
  1. +4 −1 .travis.yml
  2. +52 −0 cli_config.json
  3. +5 −1 test/lib/ConsoleReporter.js
  4. +1 −1 test/specs/compile.js
View
@@ -3,4 +3,7 @@ node_js:
- "0.10"
before_script:
- npm install -g .
- - npm install -g jake
+ - npm install -g jake
+ - npm install -g titanium
+ - mkdir ~/.titanium
+ - cp ./cli_config.json ~/.titanium/config.json
View
@@ -0,0 +1,52 @@
+{
+ "user": {
+ "locale": "en_US",
+ "name": "Travis Runner",
+ "email": "no-reply@appcelerator.com"
+ },
+ "app": {
+ "workspace": "",
+ "idprefix": "com.appcelerator",
+ "publisher": "Appcelerator Inc.",
+ "url": "http://appcelerator.com"
+ },
+ "cli": {
+ "colors": true,
+ "completion": false,
+ "logLevel": "debug",
+ "prompt": true,
+ "progressBars": true,
+ "failOnWrongSDK": false,
+ "httpProxyServer": "",
+ "rejectUnauthorized": true,
+ "width": 100,
+ "ignoreDirs": "^(\\.svn|_svn|\\.git|\\.hg|\\.?[Cc][Vv][Ss]|\\.bzr|\\$RECYCLE\\.BIN)$",
+ "ignoreFiles": "^(\\.gitignore|\\.npmignore|\\.cvsignore|\\.DS_Store|\\._.*|[Tt]humbs.db|\\.vspscc|\\.vssscc|\\.sublime-project|\\.sublime-workspace|\\.project|\\.tmproj)$"
+ },
+ "paths": {
+ "commands": [
+ "/usr/local/lib/node_modules/titanium-code-processor/commands"
+ ],
+ "hooks": [],
+ "modules": [],
+ "plugins": [],
+ "sdks": [
+ "/Users/admin/Library/Application Support/Titanium"
+ ],
+ "templates": [],
+ "codeProcessorPlugins": []
+ },
+ "sdk": {
+ "selected": "3.4.0.GA",
+ "defaultInstallLocation": "/Users/admin/Library/Application Support/Titanium/"
+ },
+ "android": {
+ "sdkPath": "/android-sdk",
+ "ndkPath": ""
+ },
+ "ios": {
+ "developerName": "",
+ "distributionName": "",
+ "autoSelectDevice": true
+ }
+}
@@ -6,7 +6,11 @@ module.exports = function(opts) {
//https://github.com/mhevery/jasmine-node
opts = opts || {};
- var doneCallback = opts.doneCallback || function() {};
+ var doneCallback = opts.doneCallback || function(r) {
+ if(r && r.results() && r.results().failedCount > 0 ) {
+ process.exit(1);
+ }
+ };
var print, showColors;
if (typeof Ti !== 'undefined') {
print = Ti.Platform.osname === 'android' ?
@@ -59,7 +59,7 @@ describe('alloy compile', function() {
});
_.each(platforms, function(platform,k) {
- if (process.platform === 'darwin' && platform.platform === 'blackberry') {
+ if (process.platform !== 'win32' && platform.platform === 'blackberry') {
return;
}

0 comments on commit 75d55f5

Please sign in to comment.