Skip to content

Instantly share code, notes, and snippets.

@mhenrixon
Created September 9, 2016 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhenrixon/cd3b26d67beff77dd22b021a5738b627 to your computer and use it in GitHub Desktop.
Save mhenrixon/cd3b26d67beff77dd22b021a5738b627 to your computer and use it in GitHub Desktop.
How to push coverage to code climate from travis-ci when running rspec from docker-compose
sudo: required
language: ruby
services:
- docker
script:
- docker-compose run -e TRAVIS=$TRAVIS -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST rspec
- docker-compose run -e TRAVIS=$TRAVIS -e TRAVIS_BRANCH=$TRAVIS_BRANCH -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID -e TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST test_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment