forked from shakacode/react-webpack-rails-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (43 loc) · 1.11 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
44
45
language:
- ruby
rvm:
- 2.4.1
sudo: true
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
install:
- bundle install
- chromedriver-update
- wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update
- sudo apt-get install google-chrome-stable
- nvm install stable && nvm alias default stable
- npm install -g [email protected]
- npm install -g yarn
- node --version
- npm --version
- google-chrome --version
- chromedriver --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