Is it possible to set up travis to run tests for several languages?
karma-runner, ruby-on-rails, travis-ci
Solution
It is not possible yet to have several languages on travis configuration file.
On the other hand, all environments run node.js. The following script does the trick:
language: ruby
rvm:
- 2.0.0
before_script:
- npm install karma
script:
- RAILS_ENV=test bundle exec rake --trace db:migrate test
- karma start --single-run --browsers PhantomJS test/karma/config/unit.js
Help found on an old thread in a google group
Problem
I have a rails project and am running tests for my JavaScript test (Jasmine) through Karma .travis.yml file ``` language: ruby rvm: - 2.0.0 script: - RAILS_ENV=test bundle exec rake --trace db:migrate test - karma start --single-run --browsers PhantomJS test/karma/config/unit.js ``` Travis fails saying it does not find karma. is there a way to define node_js as another language and install karma on the build VM?