Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 98c5945

Browse files
committed
Update tests to be more generic
1 parent 4b68eae commit 98c5945

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.travis.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,30 @@ rvm:
44
services:
55
- mysql
66
env:
7-
- HYPER_DEV_GEM_SOURCE="https://gems.ruby-hyperloop.org" TZ=Europe/Berlin
7+
- DRIVER=google-chrome TZ=Europe/Berlin
88
before_install:
9-
- sudo apt-get install -y fonts-liberation
10-
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
11-
- sudo dpkg -i google-chrome*.deb
9+
- if [[ "$DRIVER" == "google-chrome" ]]; then wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -; fi
10+
- 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
11+
- if [[ "$DRIVER" == "google-chrome" ]]; then sudo apt-get update -qq && sudo apt-get install -qq -y google-chrome-stable; fi
12+
- sudo apt-get install -qq -y fonts-liberation
1213
- gem install bundler
1314
before_script:
1415
- cd spec/test_app
15-
- bundle update
16-
- rails db:setup
16+
- bundle install --jobs=3 --retry=3
17+
- bundle exec rails db:setup
1718
- cd ../../
18-
- chromedriver-update
19-
- ls -lR ~/.chromedriver-helper/
19+
- if [[ "$DRIVER" == "google-chrome" ]]; then chromedriver-update; fi
20+
- if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi
21+
- if [[ "$DRIVER" == "google-chrome" ]]; then chromedriver --version; fi
22+
- if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi
23+
- if [[ "$DRIVER" == "google-chrome" ]]; then which chromedriver; fi
24+
- if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi
2025
script: bundle exec rspec
2126
gemfile:
2227
- gemfiles/opal_0_10_react-rails_2_3.gemfile
2328
- gemfiles/opal_0_10_react-rails_2_4.gemfile
2429
- gemfiles/opal_0_11_react-rails_2_4.gemfile
2530
matrix:
31+
fast_finish: true
2632
allow_failures:
27-
- gemfile: gemfiles/opal_0_11_react-rails_2_4.gemfile
33+
- gemfile: gemfiles/opal_0_11_react-rails_2_4.gemfile

0 commit comments

Comments
 (0)