Skip to content

Commit b1746f3

Browse files
authored
Merge pull request #478 from coopdevs/ci_coverage
Report code coverage (via Code Climate) in CI
2 parents b97a82a + ad14602 commit b1746f3

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
language: ruby
22
cache: bundler
33
bundler_args: '--without development'
4-
env: DATABASE_URL=postgres://postgres@localhost/timeoverflow_test
4+
env:
5+
global:
6+
- DATABASE_URL=postgres://postgres@localhost/timeoverflow_test
7+
- CC_TEST_REPORTER_ID=025bc15a0fa9afa52d86ee24fea845cf1d363f48a466bcf2cef8ab80c29acb28
58
before_script:
69
- bundle exec rake db:setup
10+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
11+
- chmod +x ./cc-test-reporter
12+
- ./cc-test-reporter before-build
713
# allow elasticsearch to be ready - https://docs.travis-ci.com/user/database-setup/#ElasticSearch
814
- sleep 10
15+
after_script:
16+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
917
services:
1018
- elasticsearch
1119
addons:

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# TimeOverflow [![View performance data on Skylight](https://badges.skylight.io/problem/grDTNuzZRnyu.svg)](https://oss.skylight.io/app/applications/grDTNuzZRnyu) [![Build Status](https://travis-ci.org/coopdevs/timeoverflow.svg)](https://travis-ci.org/coopdevs/timeoverflow) [![Code Climate](https://codeclimate.com/github/timeoverflow/timeoverflow/badges/gpa.svg)](https://codeclimate.com/github/timeoverflow/timeoverflow)
1+
# TimeOverflow
2+
[![View performance data on Skylight](https://badges.skylight.io/problem/grDTNuzZRnyu.svg)](https://oss.skylight.io/app/applications/grDTNuzZRnyu)
3+
[![Build Status](https://travis-ci.org/coopdevs/timeoverflow.svg)](https://travis-ci.org/coopdevs/timeoverflow)
4+
[![Maintainability](https://api.codeclimate.com/v1/badges/f82c6d98a2441c84f2ef/maintainability)](https://codeclimate.com/github/coopdevs/timeoverflow/maintainability)
5+
[![Test Coverage](https://api.codeclimate.com/v1/badges/f82c6d98a2441c84f2ef/test_coverage)](https://codeclimate.com/github/coopdevs/timeoverflow/test_coverage)
6+
27
#### www.timeoverflow.org
38

49
:globe_with_meridians: Read this [in English](docs/README.en.md)

0 commit comments

Comments
 (0)