2012-09-15 02:15:26 -04:00
|
|
|
language: ruby
|
2016-04-14 19:59:03 -04:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2019-04-25 03:39:37 -04:00
|
|
|
notifications:
|
|
|
|
webhooks: https://coveralls.io/webhook
|
2018-04-24 18:47:53 -04:00
|
|
|
services:
|
|
|
|
- docker
|
2011-11-06 07:16:54 -05:00
|
|
|
rvm:
|
2019-03-25 19:59:07 -04:00
|
|
|
- 2.6
|
2019-08-14 18:56:06 -04:00
|
|
|
- jruby-9.2.8.0
|
2012-09-09 18:57:31 -04:00
|
|
|
gemfile:
|
|
|
|
- Gemfile
|
2016-10-13 22:50:03 -04:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
|
|
|
- JAVA_OPTS=-Djava.security.egd=file:/dev/urandom
|
2019-07-30 15:30:14 -04:00
|
|
|
- WD_CACHE_TIME=0
|
2016-10-13 22:50:03 -04:00
|
|
|
|
|
|
|
addons:
|
2019-04-18 18:18:16 -04:00
|
|
|
chrome: stable
|
2016-10-13 22:50:03 -04:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- awesome
|
|
|
|
|
2018-08-29 20:33:51 -04:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- /^ie_/
|
|
|
|
|
2018-01-03 12:36:42 -05:00
|
|
|
cache:
|
|
|
|
bundler: true
|
|
|
|
directories:
|
|
|
|
- ~/.webdrivers
|
|
|
|
|
2012-09-09 18:57:31 -04:00
|
|
|
matrix:
|
2013-11-14 12:43:36 -05:00
|
|
|
include:
|
2019-04-22 20:43:02 -04:00
|
|
|
- gemfile: gemfiles/Gemfile.gumbo
|
|
|
|
rvm: 2.5
|
|
|
|
script: bundle exec rake rack_smoke
|
2018-04-24 18:47:53 -04:00
|
|
|
- gemfile: Gemfile
|
2019-03-25 19:59:07 -04:00
|
|
|
rvm: 2.5
|
2018-06-26 16:55:17 -04:00
|
|
|
env: CAPYBARA_REMOTE=true
|
2018-06-25 14:21:20 -04:00
|
|
|
- gemfile: Gemfile
|
2019-03-25 19:59:07 -04:00
|
|
|
rvm: 2.5
|
2018-06-26 16:55:17 -04:00
|
|
|
env:
|
|
|
|
- CAPYBARA_REMOTE=true
|
|
|
|
- CAPYBARA_FF=true
|
2019-01-24 11:37:24 -05:00
|
|
|
- gemfile: gemfiles/Gemfile.base-versions
|
2019-03-25 12:37:25 -04:00
|
|
|
rvm: 2.4
|
2017-08-02 15:10:56 -04:00
|
|
|
env: CAPYBARA_FF=true
|
2016-07-27 17:20:25 -04:00
|
|
|
addons:
|
2017-08-02 15:10:56 -04:00
|
|
|
firefox: latest
|
2016-07-27 17:20:25 -04:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- awesome
|
2019-04-18 03:19:42 -04:00
|
|
|
- gemfile: gemfiles/Gemfile.base-versions
|
|
|
|
rvm: 2.4
|
2017-05-02 12:35:08 -04:00
|
|
|
- gemfile: Gemfile
|
2019-03-25 19:59:07 -04:00
|
|
|
rvm: 2.6
|
2017-08-02 15:10:56 -04:00
|
|
|
env: HEADLESS=true
|
2019-06-09 15:05:41 -04:00
|
|
|
- gemfile: Gemfile
|
|
|
|
rvm: 2.6
|
|
|
|
env:
|
|
|
|
- HEADLESS=true
|
|
|
|
- W3C=false
|
2016-10-13 22:50:03 -04:00
|
|
|
- gemfile: gemfiles/Gemfile.beta-versions
|
2019-03-25 19:59:07 -04:00
|
|
|
rvm: 2.6
|
2017-08-02 15:10:56 -04:00
|
|
|
env: CAPYBARA_FF=true
|
2016-10-13 22:50:03 -04:00
|
|
|
addons:
|
|
|
|
firefox: latest-beta
|
2017-01-03 13:52:33 -05:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- awesome
|
2018-11-18 16:27:00 -05:00
|
|
|
- gemfile: gemfiles/Gemfile.edge-firefox
|
2018-07-26 17:13:30 -04:00
|
|
|
rvm: ruby-head
|
|
|
|
env:
|
|
|
|
- CAPYBARA_FF=true
|
|
|
|
- CAPYBARA_REMOTE=true
|
2018-11-18 16:27:00 -05:00
|
|
|
- gemfile: gemfiles/Gemfile.edge-firefox
|
2018-07-26 17:13:30 -04:00
|
|
|
rvm: ruby-head
|
|
|
|
env:
|
|
|
|
- CAPYBARA_REMOTE=true
|
|
|
|
- HEADLESS=true
|
2018-11-18 16:27:00 -05:00
|
|
|
- gemfile: gemfiles/Gemfile.edge-firefox
|
2017-10-06 18:12:12 -04:00
|
|
|
rvm: ruby-head
|
2018-11-08 16:28:33 -05:00
|
|
|
env: CAPYBARA_FF=true RUBY_OPT=--jit
|
2016-09-01 18:46:56 -04:00
|
|
|
addons:
|
2017-02-06 19:01:39 -05:00
|
|
|
firefox: latest-nightly
|
2016-09-01 18:46:56 -04:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- awesome
|
2019-11-28 17:41:13 -05:00
|
|
|
- gemfile: Gemfile
|
|
|
|
rvm: ruby-head
|
|
|
|
env: CAPYBARA_FF=true
|
|
|
|
addons:
|
|
|
|
firefox: latest
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- awesome
|
2017-05-24 17:26:14 -04:00
|
|
|
- gemfile: Gemfile
|
2019-03-25 19:59:07 -04:00
|
|
|
rvm: 2.4
|
2017-08-02 15:10:56 -04:00
|
|
|
env: CAPYBARA_FF=true HEADLESS=true
|
2017-05-24 17:26:14 -04:00
|
|
|
addons:
|
2017-10-06 21:07:16 -04:00
|
|
|
firefox: latest
|
2018-10-19 13:09:52 -04:00
|
|
|
- gemfile: Gemfile
|
2019-03-25 19:59:07 -04:00
|
|
|
rvm: 2.5
|
2019-06-09 15:05:41 -04:00
|
|
|
env: CHROME_BETA=true HEADLESS=true
|
2019-04-18 18:18:16 -04:00
|
|
|
addons:
|
|
|
|
chrome: beta
|
2019-04-30 15:00:15 -04:00
|
|
|
- gemfile: Gemfile
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10.2
|
|
|
|
rvm: 2.6
|
|
|
|
addons:
|
|
|
|
homebrew:
|
|
|
|
taps: homebrew/cask-versions
|
|
|
|
casks: safari-technology-preview
|
|
|
|
before_script:
|
|
|
|
- "sudo /usr/bin/safaridriver --enable"
|
|
|
|
- "sudo '/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver' --enable"
|
|
|
|
script: "bundle exec rake spec_safari"
|
2019-06-04 17:35:44 -04:00
|
|
|
- gemfile: gemfiles/Gemfile.chrome_edge
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode10.2
|
|
|
|
rvm: 2.6
|
|
|
|
addons:
|
|
|
|
homebrew:
|
|
|
|
taps: homebrew/cask-versions
|
2019-06-16 13:10:37 -04:00
|
|
|
casks: microsoft-edge-dev
|
2019-06-04 17:35:44 -04:00
|
|
|
before_install:
|
|
|
|
- wget https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/76.0.168.0/edgedriver_mac64.zip
|
|
|
|
- unzip edgedriver_mac64.zip -d /usr/local/bin
|
|
|
|
script: "bundle exec rake spec_edge"
|
2013-11-14 12:43:36 -05:00
|
|
|
allow_failures:
|
2019-04-30 15:00:15 -04:00
|
|
|
- os: osx
|
2013-11-14 12:43:36 -05:00
|
|
|
- gemfile: gemfiles/Gemfile.beta-versions
|
2018-11-18 16:27:00 -05:00
|
|
|
- gemfile: gemfiles/Gemfile.edge-firefox
|
2019-06-09 15:05:41 -04:00
|
|
|
- env: CHROME_BETA=true HEADLESS=true
|
2013-02-25 14:13:03 -05:00
|
|
|
before_install:
|
2018-02-01 18:38:23 -05:00
|
|
|
- gem update --system
|
2018-11-18 16:27:00 -05:00
|
|
|
- if [[ $BUNDLE_GEMFILE =~ Gemfile.edge-firefox$ ]]; then
|
2016-09-01 18:46:56 -04:00
|
|
|
pushd ..;
|
|
|
|
git clone --depth 1 https://github.com/SeleniumHQ/selenium.git;
|
2016-09-01 13:30:56 -04:00
|
|
|
cd selenium; ./go //rb:gem:build;
|
2016-09-01 18:46:56 -04:00
|
|
|
popd;
|
|
|
|
bundle config local.selenium-webdriver ../selenium/build/rb;
|
2016-09-01 13:30:56 -04:00
|
|
|
fi
|
2011-11-06 07:16:54 -05:00
|
|
|
before_script:
|
2018-06-26 16:55:17 -04:00
|
|
|
- if [[ -z $HEADLESS && -z $CAPYBARA_REMOTE ]]; then
|
2017-08-02 15:10:56 -04:00
|
|
|
export DISPLAY=:99.0;
|
|
|
|
sh -e /etc/init.d/xvfb start;
|
|
|
|
sleep 1;
|
|
|
|
mkdir -p ~/.config/awesome;
|
|
|
|
echo "require('awful'); tags = {}; tags[1] = awful.tag({'name'})" > ~/.config/awesome/rc.lua;
|
|
|
|
awesome &
|
|
|
|
fi
|
2018-06-26 16:55:17 -04:00
|
|
|
- if [[ $CAPYBARA_REMOTE = true ]]; then
|
2018-06-28 13:18:50 -04:00
|
|
|
if [[ $CAPYBARA_FF = true ]]; then
|
|
|
|
docker-compose up -d selenium_firefox;
|
|
|
|
else
|
|
|
|
docker-compose up -d selenium_chrome;
|
|
|
|
fi;
|
2018-06-25 14:21:20 -04:00
|
|
|
fi
|
2018-04-24 18:47:53 -04:00
|
|
|
|
2013-02-25 14:13:03 -05:00
|
|
|
script: "bundle exec rake travis"
|