Skip to content

Commit

Permalink
use codeclimate-test-reporter binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 12, 2020
1 parent 6dd301c commit 40c1583
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 39 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ before_script:
- memcached -p 11211 &
- cp .env.travis .env
- mkdir -p tmp/pids
- mkdir -p log
- bundle exec rake db:setup RAILS_ENV=test
- sleep 10
- 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

script:
- bundle exec rspec spec
- bundle exec codeclimate-test-reporter
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

after_success:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ LABEL maintainer="[email protected]"

# Set correct environment variables.
ENV HOME /home/app
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8

# Allow app user to read /etc/container_environment
RUN usermod -a -G docker_env app
Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ group :test do
gem "webmock", "~> 3.1"
gem "hashdiff", [">= 1.0.0.beta1", "< 2.0.0"]
gem "vcr", "~> 3.0.3"
gem "codeclimate-test-reporter", "~> 1.0", ">= 1.0.8"
gem "factory_bot_rails", "~> 4.8", ">= 4.8.2"
gem "shoulda-matchers", "~> 4.1", ">= 4.1.2"
gem "faker", "~> 1.9"
gem "database_cleaner"
gem "elasticsearch-extensions", "~> 0.0.29"
gem 'test-prof', '~> 0.10.2'
gem 'simplecov', '~> 0.17.1'
end
70 changes: 35 additions & 35 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ GEM
audited (4.9.0)
activerecord (>= 4.2, < 6.1)
aws-eventstream (1.0.3)
aws-partitions (1.258.0)
aws-sdk-core (3.86.0)
aws-partitions (1.263.0)
aws-sdk-core (3.88.0)
aws-eventstream (~> 1.0, >= 1.0.2)
aws-partitions (~> 1, >= 1.239.0)
aws-sigv4 (~> 1.1)
Expand Down Expand Up @@ -139,7 +139,7 @@ GEM
builder (3.2.4)
byebug (11.0.1)
cancancan (2.3.0)
capybara (3.29.0)
capybara (3.30.0)
addressable
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
Expand All @@ -149,13 +149,11 @@ GEM
xpath (~> 3.2)
case_transform (0.2)
activesupport
citeproc (1.0.9)
citeproc (1.0.10)
namae (~> 1.0)
citeproc-ruby (1.1.10)
citeproc (~> 1.0, >= 1.0.9)
csl (~> 1.5)
codeclimate-test-reporter (1.0.9)
simplecov (<= 0.13)
coderay (1.1.2)
colorize (0.8.1)
commonmarker (0.17.13)
Expand All @@ -172,9 +170,9 @@ GEM
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.5)
csl (1.5.0)
csl (1.5.1)
namae (~> 1.0)
csl-styles (1.0.1.9)
csl-styles (1.0.1.10)
csl (~> 1.0)
css_parser (1.7.1)
addressable
Expand All @@ -183,7 +181,7 @@ GEM
debug_inspector (0.0.3)
diff-lcs (1.3)
diffy (3.3.0)
docile (1.1.5)
docile (1.3.2)
docopt (0.6.1)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
Expand Down Expand Up @@ -233,10 +231,10 @@ GEM
fast_jsonapi (1.5)
activesupport (>= 4.2)
ffi (1.11.3)
flipper (0.17.1)
flipper-active_support_cache_store (0.17.1)
flipper (0.17.2)
flipper-active_support_cache_store (0.17.2)
activesupport (>= 4.2, < 7)
flipper (~> 0.17.1)
flipper (~> 0.17.2)
gender_detector (0.1.2)
unicode_utils (>= 1.3.0)
git (1.5.0)
Expand All @@ -259,14 +257,14 @@ GEM
htmlentities (4.3.4)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (1.7.0)
i18n (1.8.1)
concurrent-ruby (~> 1.0)
i18n_data (0.8.0)
iso8601 (0.9.1)
jaro_winkler (1.5.4)
jmespath (1.4.0)
json (2.3.0)
json-canonicalization (0.1.0)
json-canonicalization (0.2.0)
json-ld (3.1.0)
htmlentities (~> 4.3)
json-canonicalization (~> 0.1)
Expand Down Expand Up @@ -329,15 +327,15 @@ GEM
oj (>= 2.8.3)
oj_mimic_json (~> 1.0, >= 1.0.1)
method_source (0.9.2)
mime-types (3.3)
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2019.1009)
mimemagic (0.3.3)
mini_magick (4.9.5)
mini_magick (4.10.1)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.13.0)
money (6.13.6)
minitest (5.14.0)
money (6.13.7)
i18n (>= 0.6.4, <= 2)
msgpack (1.3.1)
multi_json (1.14.1)
Expand All @@ -353,7 +351,7 @@ GEM
optimist (3.0.0)
pandoc-ruby (2.0.2)
parallel (1.19.1)
parser (2.6.5.0)
parser (2.7.0.2)
ast (~> 2.4.0)
postrank-uri (1.0.24)
addressable (>= 2.4.0)
Expand All @@ -368,10 +366,10 @@ GEM
pwqgen.rb (0.1.0)
docopt (~> 0.5)
sysrandom
rack (2.0.8)
rack (2.1.1)
rack-accept (0.4.5)
rack (>= 0.4)
rack-cors (1.1.0)
rack-cors (1.1.1)
rack (>= 2.0.0)
rack-test (1.1.0)
rack (>= 1.0, < 3)
Expand Down Expand Up @@ -404,9 +402,9 @@ GEM
rainbow (3.0.0)
rake (12.3.3)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
rb-inotify (0.10.1)
ffi (~> 1.0)
rdf (3.1.0)
rdf (3.1.1)
hamster (~> 3.0)
link_header (~> 0.0, >= 0.0.8)
rdf-aggregate-repo (3.1.0)
Expand Down Expand Up @@ -442,12 +440,12 @@ GEM
benchmark-perf (~> 0.4.0)
benchmark-trend (~> 0.2.0)
rspec (>= 3.0.0, < 4.0.0)
rspec-core (3.9.0)
rspec-support (~> 3.9.0)
rspec-core (3.9.1)
rspec-support (~> 3.9.1)
rspec-expectations (3.9.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.0)
rspec-mocks (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-rails (3.9.0)
Expand All @@ -458,17 +456,17 @@ GEM
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.0)
rspec-support (3.9.2)
rubocop (0.77.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.6)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
rubocop-performance (1.5.1)
rubocop-performance (1.5.2)
rubocop (>= 0.71.0)
rubocop-rails (2.4.0)
rubocop-rails (2.4.1)
rack (>= 1.1)
rubocop (>= 0.72.0)
ruby-enum (0.7.2)
Expand All @@ -482,11 +480,11 @@ GEM
aws-sdk-core (>= 2)
concurrent-ruby
thor
shoulda-matchers (4.1.2)
shoulda-matchers (4.2.0)
activesupport (>= 4.2.0)
simple_command (0.1.0)
simplecov (0.13.0)
docile (~> 1.1.0)
simplecov (0.17.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
Expand Down Expand Up @@ -515,6 +513,7 @@ GEM
rdf (~> 3.1)
sysrandom (1.0.5)
temple (0.8.2)
test-prof (0.10.2)
thor (0.20.3)
thread_safe (0.3.6)
tilt (2.0.10)
Expand All @@ -523,7 +522,7 @@ GEM
rack (>= 1.3, < 3)
rack-accept (~> 0.4)
tilt (>= 1.4, < 3)
tzinfo (1.2.5)
tzinfo (1.2.6)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
Expand Down Expand Up @@ -562,7 +561,6 @@ DEPENDENCIES
byebug
cancancan (~> 2.0)
capybara
codeclimate-test-reporter (~> 1.0, >= 1.0.8)
commonmarker (~> 0.17.9)
countries (~> 2.1, >= 2.1.2)
country_select (~> 3.1)
Expand Down Expand Up @@ -621,16 +619,18 @@ DEPENDENCIES
shoryuken (~> 4.0)
shoulda-matchers (~> 4.1, >= 4.1.2)
simple_command
simplecov (~> 0.17.1)
slack-notifier (~> 2.1)
spring
spring-commands-rspec
spring-watcher-listen (~> 2.0.0)
sprockets (~> 3.7, >= 3.7.2)
string_pattern
strip_attributes (~> 1.8)
test-prof (~> 0.10.2)
turnout (~> 2.5)
vcr (~> 3.0.3)
webmock (~> 3.1)

BUNDLED WITH
2.0.2
2.1.4

0 comments on commit 40c1583

Please sign in to comment.