Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support before_handle_request * Support before_handle_request, fix proc usage * Support before_handle_request, fix doc * Fix test suite
- Loading branch information
Showing
10 changed files
with
108 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,36 @@ | ||
language: ruby | ||
cache: bundler | ||
before_install: | ||
- gem install bundler -v '< 2' | ||
- export PHANTOMJS_VERSION='2.1.1' | ||
- export PHANTOMJS_URL='https://github.com/Medium/phantomjs' | ||
- export PHANTOMJS_URL+="/releases/download/v${PHANTOMJS_VERSION}" | ||
- export PHANTOMJS_URL+="/phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2" | ||
- > | ||
wget -q ${PHANTOMJS_URL} && | ||
tar xfv phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 \ | ||
--wildcards */bin/phantomjs --strip-components=2 | ||
- export PATH="`pwd`:${PATH}" | ||
before_script: | ||
- phantomjs --version | ||
- bundle --version | ||
|
||
rvm: | ||
- 2.3 | ||
- 2.4 | ||
- 2.5 | ||
- 2.6 | ||
script: bundle exec rspec spec | ||
|
||
cache: | ||
bundler: true | ||
directories: | ||
- $HOME/.webdrivers | ||
|
||
addons: | ||
chrome: stable | ||
apt: | ||
update: true | ||
|
||
sudo: false | ||
dist: xenial | ||
|
||
rvm: | ||
- 2.3 | ||
- 2.4 | ||
- 2.5 | ||
- 2.6 | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
bundler_args: --jobs 3 --retry 3 | ||
|
||
before_install: | ||
- gem update --system | ||
- gem install bundler | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
#!/usr/bin/env rake | ||
require 'bundler/gem_tasks' | ||
|
||
begin | ||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) | ||
rescue LoadError | ||
end | ||
|
||
desc 'Run all tests' | ||
task default: [:spec] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters