forked from ruby-hyperloop/hyper-operation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
33 lines (33 loc) · 1.26 KB
/
.travis.yml
File metadata and controls
33 lines (33 loc) · 1.26 KB
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
dist: trusty
language: ruby
cache: bundler
rvm:
- 2.4.4
- 2.5.1
- ruby-head
services:
- mysql
env:
- DRIVER=google-chrome TZ=Europe/Berlin
matrix:
fast_finish: true
allow_failures:
- rvm: ruby-head
before_install:
- if [[ "$DRIVER" == "google-chrome" ]]; then wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -; fi
- if [[ "$DRIVER" == "google-chrome" ]]; then echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list; fi
- if [[ "$DRIVER" == "google-chrome" ]]; then sudo apt-get update -qq && sudo apt-get install -qq -y google-chrome-stable; fi
- gem install bundler
before_script:
- cd spec/test_app
- bundle install --jobs=3 --retry=3
- bundle exec rails db:setup
- cd ../../
- if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver-update; fi
- if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi
- if [[ "$DRIVER" == "google-chrome" ]]; then bundle exec chromedriver --version; fi
- if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi
- if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi
script: bundle exec rspec
gemfile:
- gemfiles/opal_0_11_react-rails_2_4.gemfile