Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Travis CI: Karma testing passing but always get errored build

I've been trying yo integrate travis for CI in my free-source project. When I push to my repository, all looks ok , but after execute karma start --single-run, the console of the travis don't stop to execute the karma start task.

How to fix this?

.travis.yml

language: node_js
sudo: false
node_js:
  - 0.10
script: karma start -–single-run
before_install:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
before_script:
  - npm install -g bower 
  - npm install
  - bower install

Travis Console Errored build

Updated Question : Why in the travis process when i use in the console karma start --single-run the option no overwrite the option singleRun: false in the karma.conf.js? In my local environment this works fine.

like image 676
Gonzalo Pincheira Arancibia Avatar asked May 11 '16 16:05

Gonzalo Pincheira Arancibia


1 Answers

Finally I solved, the problem was in my karma.conf.js

singleRun: true,

I change this option from false to true. Frequently when i develop, use singleRun option in my karma configuration file to false for use auto watch option. The weird thing it's that in my local machine when i run karma with the option explicity in the command line (karma start --single-run), the option in the karma.conf.js is overwritten, but in travis this it's not posible.

like image 142
Gonzalo Pincheira Arancibia Avatar answered Nov 17 '22 20:11

Gonzalo Pincheira Arancibia