.travis.yml
language: ruby
rvm:
- 2.2.2
env:
- DB=sqlite
- DB=postgresql
services:
- postgresql
cache:
- bundler
install:
- mkdir travis-phantomjs
- wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs:$PATH
before_script:
- psql -c 'create database travis_ci_test' -U postgres
script:
- bundle install
- bundle exec rake assets:precompile RAILS_ENV=test --trace
- bundle exec rake --trace db:migrate RAILS_ENV=test
- bundle exec cucumber
- bundle exec rspec
addons:
code_climate:
repo_token: bcc51d0ee53a134dbbab7023cceacb480bb7360f84812025cad7f0afccfde69e