1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/.travis.yml

120 lines
2.7 KiB
YAML
Raw Normal View History

language: ruby
2016-04-14 19:59:03 -04:00
sudo: required
dist: trusty
2018-04-24 18:47:53 -04:00
services:
- docker
2011-11-06 07:16:54 -05:00
rvm:
2018-05-10 16:20:23 -04:00
- 2.5.1
2018-02-27 19:53:01 -05:00
- jruby-9.1.16.0
2012-09-09 18:57:31 -04:00
gemfile:
- Gemfile
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- JAVA_OPTS=-Djava.security.egd=file:/dev/urandom
# matrix:
# - WINDOW_TEST=true
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta
- awesome
branches:
except:
- /^ie_/
cache:
bundler: true
directories:
- ~/.webdrivers
2012-09-09 18:57:31 -04:00
matrix:
include:
2018-04-24 18:47:53 -04:00
- gemfile: Gemfile
2018-05-10 16:20:23 -04:00
rvm: 2.5.1
2018-06-26 16:55:17 -04:00
env: CAPYBARA_REMOTE=true
2018-06-25 14:21:20 -04:00
- gemfile: Gemfile
rvm: 2.5.1
2018-06-26 16:55:17 -04:00
env:
- CAPYBARA_REMOTE=true
- CAPYBARA_FF=true
- gemfile: gemfiles/Gemfile.rspec-34
2018-06-29 15:37:13 -04:00
rvm: 2.3.7
env: CAPYBARA_FF=true
2016-07-27 17:20:25 -04:00
addons:
firefox: latest
2016-07-27 17:20:25 -04:00
apt:
packages:
- awesome
- gemfile: Gemfile
2018-05-10 16:20:23 -04:00
rvm: 2.5.1
env: HEADLESS=true
- gemfile: gemfiles/Gemfile.beta-versions
2018-05-10 16:20:23 -04:00
rvm: 2.5.1
env: CAPYBARA_FF=true
addons:
firefox: latest-beta
2017-01-03 13:52:33 -05:00
apt:
packages:
- awesome
- gemfile: gemfiles/Gemfile.edge-marionette
rvm: ruby-head
env:
- CAPYBARA_FF=true
- CAPYBARA_REMOTE=true
- gemfile: gemfiles/Gemfile.edge-marionette
rvm: ruby-head
env:
- CAPYBARA_REMOTE=true
- HEADLESS=true
- gemfile: gemfiles/Gemfile.edge-marionette
2017-10-06 18:12:12 -04:00
rvm: ruby-head
env: CAPYBARA_FF=true
addons:
firefox: latest-nightly
apt:
packages:
- awesome
- gemfile: Gemfile
2018-06-29 15:37:13 -04:00
rvm: 2.4.4
env: CAPYBARA_FF=true HEADLESS=true
addons:
firefox: latest
allow_failures:
- gemfile: gemfiles/Gemfile.beta-versions
- gemfile: gemfiles/Gemfile.edge-marionette
before_install:
- gem update --system
2018-07-17 17:18:37 -04:00
- gem install bundler -v 1.16.2
- if [[ $BUNDLE_GEMFILE =~ Gemfile.edge-marionette$ ]]; then
pushd ..;
git clone --depth 1 https://github.com/SeleniumHQ/selenium.git;
cd selenium; ./go //rb:gem:build;
popd;
bundle config local.selenium-webdriver ../selenium/build/rb;
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
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
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
script: "bundle exec rake travis"