Files
grecia/.travis.yml
rgarcia 3105bd9ee1 precompile assets in test environment
Usually the first spec that visits a page fails with a timeout.
Hopefully it was due to having to compile assets at runtime and this helps to fix it
2017-09-19 17:30:40 +02:00

18 lines
381 B
YAML

language: ruby
addons:
postgresql: "9.4"
rvm:
- "2.3.2"
cache: bundler
before_script:
- "for i in config/*.example; do cp \"$i\" \"${i/.example}\"; done"
- bundle exec rake db:setup
script:
- "bundle exec rake assets:precompile RAILS_ENV=test"
- "bundle exec rake knapsack:rspec"
env:
global:
- CI_NODE_TOTAL=2
matrix:
- CI_NODE_INDEX=0
- CI_NODE_INDEX=1