updates for codeclimate

This commit is contained in:
Ralf Teusner
2017-11-29 09:57:27 +01:00
parent a292322138
commit 901d35c59c
2 changed files with 1 additions and 6 deletions

View File

@ -36,7 +36,7 @@ rvm:
# - 2.1.5 # - 2.1.5
# - 2.2.1 # - 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 # 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}" # - 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}"

View File

@ -16,13 +16,8 @@
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
unless RUBY_PLATFORM == 'java' unless RUBY_PLATFORM == 'java'
if ENV['CODECLIMATE_REPO_TOKEN']
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start
else
require 'simplecov' require 'simplecov'
SimpleCov.start('rails') SimpleCov.start('rails')
end
end end
RSpec.configure do |config| RSpec.configure do |config|