-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (41 loc) · 1.14 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
33
34
35
36
37
38
39
40
41
42
43
language:
- ruby
rvm:
- 2.4.1
sudo: false
notifications:
slack: shakacode:YvfXbuFMcFAHt6ZjABIs0KET
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
services:
- postgresql
env:
global:
- RAILS_ENV=test
- CXX=g++-4.9
before_install:
- mkdir $PWD/travis-phantomjs
- curl -sSL https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2 -o $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
install:
- bundle install
- chromedriver-update
- nvm install stable && nvm alias default stable
- npm install npm@latest -g
- npm install -g yarn
- npm --version
- yarn install
- rake db:setup
# Tip: No need to run xvfb if running headless testing. However, we're going to start with
# Poltergeist and switch to selenium if a test fails.
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- bundle exec rake db:schema:load
- bundle exec rake