-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
52 lines (43 loc) · 986 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
45
46
47
48
49
50
51
52
dist: trusty
language: ruby
cache: bundler
node_js:
- "8.10.0"
rvm:
- 2.2.8
sudo: true
dist: trusty
addons:
chrome: stable
cache:
yarn: true
directories:
- $HOME/.npm
- $HOME/.yarn-cache
- node_modules
- bower_components
before_install:
- nvm install 8.10.0
- gem install bundler -v 1.12.5
- cd frontend
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn global add bower
- bower --version
before_script:
- cd ..
- psql -c 'create database hanuman_test;' -U postgres
- bundle install && bundle exec rake db:migrate --trace
- cd frontend
- "sudo chown root /opt/google/chrome/chrome-sandbox"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
install:
- yarn install --non-interactive
- bower install
- ./node_modules/testem/testem.js launchers
script:
- yarn test
- cd .. && bundle exec rspec
notifications:
slack: suntoucher:VLwFnuhlLQDFquO2NnKZUvwV
email: false