|
5 | 5 | - 2.5.1 |
6 | 6 | - ruby-head |
7 | 7 | env: |
8 | | - - DRIVER=travis TZ=Europe/Berlin |
9 | | - - DRIVER=beheaded TZ=Europe/Berlin |
| 8 | + - DRIVER=google-chrome TZ=Europe/Berlin |
| 9 | + - DRIVER=firefox TZ=Europe/Berlin |
10 | 10 | before_install: |
11 | | - - if [[ "$DRIVER" == "travis" ]]; then wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -; fi |
12 | | - - if [[ "$DRIVER" == "travis" ]]; then echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list; fi |
13 | | - - if [[ "$DRIVER" == "travis" ]]; then sudo apt-get update -qq && sudo apt-get install -qq -y google-chrome-stable; fi |
14 | | - - if [[ "$DRIVER" == "beheaded" ]]; then wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz; fi |
15 | | - - if [[ "$DRIVER" == "beheaded" ]]; then tar zxf geckodriver-v0.19.1-linux64.tar.gz; fi |
16 | | - - if [[ "$DRIVER" == "beheaded" ]]; then sudo mv geckodriver /usr/local/bin/; fi |
| 11 | + - if [[ "$DRIVER" == "google-chrome" ]]; then wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -; fi |
| 12 | + - 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 |
| 13 | + - if [[ "$DRIVER" == "google-chrome" ]]; then sudo apt-get update -qq && sudo apt-get install -qq -y google-chrome-stable; fi |
| 14 | + - if [[ "$DRIVER" == "firefox" ]]; then sudo apt-get update -qq && sudo apt-get install -qq -y firefox; fi |
17 | 15 | - gem install bundler |
18 | 16 | before_script: |
19 | 17 | - cd spec/test_app |
20 | 18 | - bundle install --jobs=3 --retry=3 |
21 | 19 | - bundle exec rails db:setup |
22 | 20 | - cd ../../ |
23 | | - - if [[ "$DRIVER" == "travis" ]]; then chromedriver-update; fi |
24 | | - - if [[ "$DRIVER" == "travis" ]]; then ls -lR ~/.chromedriver-helper/; fi |
25 | | - - if [[ "$DRIVER" == "travis" ]]; then chromedriver --version; fi |
26 | | - - if [[ "$DRIVER" == "travis" ]]; then google-chrome --version; fi |
27 | | - - if [[ "$DRIVER" == "travis" ]]; then which chromedriver; fi |
28 | | - - if [[ "$DRIVER" == "travis" ]]; then which google-chrome; fi |
29 | | - - if [[ "$DRIVER" == "beheaded" ]]; then firefox --version; fi |
30 | | - - if [[ "$DRIVER" == "beheaded" ]]; then geckodriver --version; fi |
31 | | - - if [[ "$DRIVER" == "beheaded" ]]; then which firefox; fi |
32 | | - - if [[ "$DRIVER" == "beheaded" ]]; then which geckodriver; fi |
| 21 | + - if [[ "$DRIVER" == "google-chrome" ]]; then chromedriver-update; fi |
| 22 | + - if [[ "$DRIVER" == "google-chrome" ]]; then ls -lR ~/.chromedriver-helper/; fi |
| 23 | + - if [[ "$DRIVER" == "google-chrome" ]]; then chromedriver --version; fi |
| 24 | + - if [[ "$DRIVER" == "google-chrome" ]]; then google-chrome --version; fi |
| 25 | + - if [[ "$DRIVER" == "google-chrome" ]]; then which chromedriver; fi |
| 26 | + - if [[ "$DRIVER" == "google-chrome" ]]; then which google-chrome; fi |
| 27 | + - if [[ "$DRIVER" == "firefox" ]]; then firefox --version; fi |
| 28 | + - if [[ "$DRIVER" == "firefox" ]]; then which firefox; fi |
33 | 29 | script: bundle exec rspec |
0 commit comments