Skip to content

Commit

Permalink
Merge pull request #604 from pgharts/7318-set-up-test-reporting
Browse files Browse the repository at this point in the history
BugzID: 7318 - set up CodeClimate test reporting
  • Loading branch information
danigirl329 authored Jun 8, 2022
2 parents 2eabfae + 254f7a5 commit a59fa7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
- image: cimg/ruby:3.0.1-node
environment:
- RAILS_ENV: test
- CC_TEST_REPORTER_ID: 10e89622ddc764206e253cd07c5784f83178fe45550920e0eac8ab2e020e3e93
- image: cimg/mysql:5.7.36
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
Expand Down Expand Up @@ -56,9 +57,18 @@ jobs:
sudo ln -s /usr/lib/x86_64-linux-gnu/libffi.so.7 /usr/lib/x86_64-linux-gnu/libffi.so.6
bundle exec rake app:db:migrate
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run: mkdir /tmp/test-results
- run:
command: bundle exec rspec --format progress -o /tmp/test-results/rspec.xml --profile 10 $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
command: |
./cc-test-reporter before-build
bundle exec rspec --format progress -o /tmp/test-results/rspec.xml --profile 10 $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
./cc-test-reporter after-build --coverage-input-type simplecov
when: always
- store_test_results:
path: /tmp/test-results
Expand Down
2 changes: 1 addition & 1 deletion lib/trusty_cms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

unless defined? TrustyCms::VERSION
module TrustyCms
VERSION = '5.3.1'.freeze
VERSION = '5.3.2'.freeze
end
end

0 comments on commit a59fa7d

Please sign in to comment.