forked from sanger/sequencescape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 1.29 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: ruby
rvm:
- 2.4.1
dist: trusty
sudo: required
services: mysql
addons:
apt:
sources:
- google-chrome
packages:
- haveged
- google-chrome-stable
- chromium-chromedriver
cache: bundler
bundler_args: --without warehouse deployment
env:
matrix:
- "DB_REQUIRED='true' RAILS_ENV=test TZ=Europe/London SUITE='rake test' RUBYOPT='-W0'" # RUBYOPT disables warnings turned on by default in rake 11. See note in README
- "DB_REQUIRED='true' RAILS_ENV=test TZ=Europe/London SUITE='rspec'"
- "DB_REQUIRED='true' RAILS_ENV=cucumber CI_NODE_TOTAL=2 CI_NODE_INDEX=0 JRUBY_OPTS='' PRECOMPILE_ASSETS=true CUCUMBER_FORMAT=DebugFormatter TZ=Europe/London SUITE='rake knapsack:cucumber'"
- "DB_REQUIRED='true' RAILS_ENV=cucumber CI_NODE_TOTAL=2 CI_NODE_INDEX=1 JRUBY_OPTS='' PRECOMPILE_ASSETS=true CUCUMBER_FORMAT=DebugFormatter TZ=Europe/London SUITE='rake knapsack:cucumber'"
- "SUITE=rubocop"
before_script:
- 'mv config/aker.yml.example config/aker.yml'
- 'export PATH=$PATH:/usr/lib/chromium-browser/'
- 'export DISPLAY=:99.0'
- 'sh -e /etc/init.d/xvfb start'
- 'if [[ "$DB_REQUIRED" == "true" ]]; then bundle exec rake db:setup; fi'
- 'if [[ "$PRECOMPILE_ASSETS" == "true" ]]; then bundle exec rake assets:precompile; fi'
script:
- "bundle exec $SUITE"