-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve locking/unlocking and testing * Avoid crashing the spec suite for pry * Fix a couple of flaky tests * Make sure this spec runs when pry is present * Make mock_redis available to all gemfiles
- Loading branch information
Showing
117 changed files
with
2,506 additions
and
2,100 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 |
---|---|---|
|
@@ -16,3 +16,5 @@ rails_example/spec/examples.txt | |
*.sublime-* | ||
|
||
/sidekiq/ | ||
|
||
/spec/examples.txt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,39 @@ | ||
sudo: false | ||
env: | ||
matrix: | ||
- STYLE=false | ||
global: | ||
- CC_TEST_REPORTER_ID=88e524e8f638efe690def7a6e2c72b1a9db5cdfa74548921b734d609a5858ee5 | ||
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi) | ||
dist: trusty | ||
sudo: required | ||
language: ruby | ||
cache: bundler | ||
# before_install: | ||
# - rvm get head | ||
# - gem update --system | ||
# - gem install bundler | ||
services: | ||
- redis-server | ||
|
||
|
||
before_install: | ||
- sudo rm -rf /etc/apt/sources.list.d/rwky-redis.list | ||
- sudo add-apt-repository ppa:chris-lea/redis-server -y | ||
- sudo apt-get update -qy | ||
- sudo apt-get install redis-server | ||
- sudo service redis-server start | ||
before_script: | ||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
- chmod +x ./cc-test-reporter | ||
script: | ||
- if [[ "${STYLE}" = "true" ]]; then bundle exec rubocop - P; fi; | ||
- bundle exec rspec spec | ||
- if [[ "${STYLE}" = "true" ]]; then CODECLIMATE_REPO_TOKEN=88e524e8f638efe690def7a6e2c72b1a9db5cdfa74548921b734d609a5858ee5 bundle exec codeclimate-test-reporter; fi; | ||
- if [[ "${STYLE}" = "true" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi; | ||
|
||
rvm: | ||
- 2.4.1 | ||
- 2.3.2 | ||
- jruby-9.1.8.0 | ||
env: STYLE=false | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- rvm: 2.4.1 | ||
gemfile: gemfiles/sidekiq_develop.gemfile | ||
env: STYLE=true | ||
gemfile: | ||
- gemfiles/sidekiq_develop.gemfile | ||
- gemfiles/sidekiq_4.0.gemfile | ||
|
@@ -27,12 +45,3 @@ notifications: | |
email: | ||
recipients: | ||
- [email protected] | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- rvm: 2.4.1 | ||
gemfile: gemfiles/sidekiq_develop.gemfile | ||
env: STYLE=true | ||
addons: | ||
code_climate: | ||
repo_token: 88e524e8f638efe690def7a6e2c72b1a9db5cdfa74548921b734d609a5858ee5 |
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,21 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
appraise 'sidekiq-develop' do | ||
gem 'mock_redis' | ||
gem 'sidekiq', github: 'mperham/sidekiq' | ||
end | ||
|
||
appraise 'sidekiq-4.0' do | ||
gem 'mock_redis' | ||
gem 'sidekiq', '~> 4.0.0' | ||
end | ||
|
||
appraise 'sidekiq-4.1' do | ||
gem 'mock_redis' | ||
gem 'sidekiq', '~> 4.1.0' | ||
end | ||
|
||
appraise 'sidekiq-4.2' do | ||
gem 'mock_redis' | ||
gem 'sidekiq', '~> 4.2.0' | ||
end | ||
|
||
appraise 'sidekiq-5.0' do | ||
gem 'mock_redis' | ||
gem 'sidekiq', '>= 5.0.0.beta', '< 6' | ||
end |
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
Oops, something went wrong.