-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (47 loc) · 1006 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
53
54
55
56
57
58
59
60
61
62
language: node_js
sudo: required
node_js:
- '9.11.1'
rvm:
- 2.4.1
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
bundler: true
directories:
- /home/travis/.rvm/
- spec/angular-app
cache: bundler
before_install:
- wget http://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- rm chromedriver_linux64.zip
- sudo mv -f chromedriver /usr/local/bin/
- sudo chmod +x /usr/local/bin/chromedriver
- google-chrome-stable --headless --no-sandbox
- gem install bundler -v 1.16.1
- ruby --version
- rvm --version
- bundle --version
- gem --version
- pwd
- ls
install:
before_script:
- bundle install
- cd spec/angular-app && npm install && cd ../../
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 1
script:
- HEADLESS=true bundle exec rspec spec
after_success:
after_failure:
after_script:
branches:
notifications:
email: false