arturictus/wrappi

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: ruby
cache: bundler
services:
  - docker
rvm:
  - 2.3.7
  - 2.4.4
  - 2.5.1
  - ruby-head
matrix:
  allow_failures:
    - rvm: 2.3.7
    - rvm: ruby-head
  fast_finish: true
before_install:
  - docker build -t dummy -f spec/dummy/Dockerfile .
  - docker run -d -p 127.0.0.1:9873:9873 dummy /bin/sh -c "bin/rails server -b 0.0.0.0 -p 9873"
  - docker ps -a
  - gem install bundler
script:
  - bundle exec rspec
# Code climate test reporter
env:
  global:
    - CC_TEST_REPORTER_ID=6cebf6c67b6e2d8a53a608ea98ebd897f4cba357bf1e3431bfdb77ff4207399e
before_script:
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT