From 14318e69e610b49501cbdfe1dcc1cd2231357d87 Mon Sep 17 00:00:00 2001 From: Mikael Henriksson Date: Tue, 2 Jun 2020 19:38:05 +0200 Subject: [PATCH] Move gems to gemfile (#513) * Move dev-gems from gemspec to gemfile No need managing them in the gemspec (complicated). * Attempt to coverage * Remove travis * Add services and OS --- .github/workflows/rspec.yml | 23 ++++++++++++ .travis.yml | 71 ------------------------------------- 2 files changed, 23 insertions(+), 71 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index 44fb37eb0..9b6170455 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -1,6 +1,29 @@ name: RSpec on: [push] jobs: + coverage: + services: + redis: + image: redis:latest + ports: + - 6379:6379 + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6.5 + - run: bundle install --jobs=$(nproc) --retry=$(nproc) + - name: Coverage + uses: paambaati/codeclimate-action@v2.6.0 + env: + COV: true + CC_TEST_REPORTER_ID: 88e524e8f638efe690def7a6e2c72b1a9db5cdfa74548921b734d609a5858ee5 + with: + coverageCommand: bin/rspec --require spec_helper --tag ~perf + debug: true tests: env: COV: false diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 56ea225c5..000000000 --- a/.travis.yml +++ /dev/null @@ -1,71 +0,0 @@ -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: bionic -sudo: required -language: ruby -cache: - bundler: true - directories: - - /home/travis/.rvm/ -services: - - redis-server - -before_install: - - gem update bundler - - > - if [[ "${COV}" = "true" ]]; then - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; - chmod +x ./cc-test-reporter; - fi; - -before_script: - - if [[ "${COV}" = "true" ]]; then ./cc-test-reporter before-build; fi; - -script: - - > - if [[ "${COV}" = "true" ]]; then - bundle exec rubocop -P; - bundle exec reek .; - fi; - bundle exec rspec --require spec_helper --tag ~perf - -after_script: - - if [[ "${COV}" = "true" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi; - -rvm: - - 2.5.7 - -matrix: - fast_finish: true - - include: - - rvm: jruby-9.2.11.1 - gemfile: gemfiles/sidekiq_6.0.gemfile - - rvm: 2.6.5 - gemfile: gemfiles/sidekiq_6.0.gemfile - env: COV=true - -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 - - gemfiles/sidekiq_6.0.gemfile - - gemfiles/sidekiq_develop.gemfile - -notifications: - email: - recipients: - - mikael@mhenrixon.com - slack: - rooms: - secure: B05ZUPdHrhxVnz7Mlpd5KhFH2bdE9ykFRgqLFHV3EcdyWKm85PPgbfl4cNPTFXHHhzk/5E9h5hwEXpicJYSsq6lhU8i3WesidrA+GHzrpesowTHpvtJMxIjsE1Tavug0xQs/bca72yN2t51m8UiD1scOSIuvSOCNkuKkn3+rSIo= - on_start: never - on_failure: always - on_success: change