.travis.yml in sidekiq-unique-jobs-5.0.10 vs .travis.yml in sidekiq-unique-jobs-5.0.11
- old
+ new
@@ -1,38 +1,48 @@
-sudo: false
+env:
+ matrix:
+ - COV=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:
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
+ - chmod +x ./cc-test-reporter
+before_script:
+ - ./cc-test-reporter before-build
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 [[ "${COV}" = "true" ]]; then bundle exec rubocop -P; fi;
+ - bundle exec rspec
+after_script:
+ - if [[ "${COV}" = "true" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi;
rvm:
- - 2.4.1
+ - 2.5.3
+ - 2.4.2
- 2.3.2
- - jruby-9.1.8.0
-env: STYLE=false
+ - 2.2.7
+ - jruby-9.2.0.0
+matrix:
+ fast_finish: true
+ include:
+ - rvm: 2.5.3
+ gemfile: gemfiles/sidekiq_develop.gemfile
+ env: COV=true
gemfile:
- gemfiles/sidekiq_develop.gemfile
- gemfiles/sidekiq_4.0.gemfile
- gemfiles/sidekiq_4.1.gemfile
- gemfiles/sidekiq_4.2.gemfile
- gemfiles/sidekiq_5.0.gemfile
+ - gemfiles/sidekiq_5.1.gemfile
+ - gemfiles/sidekiq_5.2.gemfile
notifications:
email:
recipients:
- mikael@zoolutions.se
-matrix:
- fast_finish: true
- include:
- - rvm: 2.4.1
- gemfile: gemfiles/sidekiq_develop.gemfile
- env: STYLE=true
-addons:
- code_climate:
- repo_token: 88e524e8f638efe690def7a6e2c72b1a9db5cdfa74548921b734d609a5858ee5