diff --git a/.travis.yml b/.travis.yml index 08e44380..b2eca493 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ rvm: # - 2.1.5 # - 2.2.1 -script: bundle exec rspec --color --format documentation --require spec_helper --require rails_helper --tag ~docker +script: bundle exec rspec --color --format documentation --require spec_helper --require rails_helper --tag ~docker && CODECLIMATE_REPO_TOKEN=53a2c2608c848714e96f6a1fc0365dcfdfec051f7827d50cea965ea625f49734 bundle exec codeclimate-test-reporter # one of the solutions I've found # - sudo docker run --rm=true -v `pwd`:/ansible-apache:rw weldpua2008/docker-ansible:${OS_TYPE}${OS_VERSION}_v${ANSIBLE_VERSION} /bin/bash -c "/ansible-apache/tests/test-in-docker-image.sh ${OS_TYPE} ${OS_VERSION} ${ANSIBLE_VERSION}" diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ca9f9a63..f13a3edb 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -16,13 +16,8 @@ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration unless RUBY_PLATFORM == 'java' - if ENV['CODECLIMATE_REPO_TOKEN'] - require 'codeclimate-test-reporter' - CodeClimate::TestReporter.start - else require 'simplecov' SimpleCov.start('rails') - end end RSpec.configure do |config|