forked from moredip/caseflow-certification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (36 loc) · 985 Bytes
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
language: ruby
dist: trusty
sudo: required
rvm:
- 2.2.4
branches:
only:
- master
before_install:
- sudo apt-get update
- sudo apt-get install chromium-chromedriver
before_script:
- node -v
- npm -v
- npm install --no-optional
- sudo apt-get install pdftk
- RAILS_ENV=test bundle exec rake db:create
- RAILS_ENV=test bundle exec rake db:schema:load
- "export PATH=$PATH:/usr/lib/chromium-browser/"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
# TODO(jd): Enable parallel tests on travis when we are ready
# This involves adding `bundle exec rake parallel:setup[3]` in the before_script block
# and `bundle exec rake parallel:rspec[3]` in the script block
script:
- bundle exec rake spec
- bundle exec rake ci:other
bundler_args: "--deployment --without development staging production"
cache:
directories:
- vendor/bundle
notifications:
email: false
services:
- redis-server