Skip to content

Commit

Permalink
Coveralls Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenyShashkin authored and vdanilin committed Dec 10, 2018
1 parent 4dc5fb4 commit 09af1c1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ python:

services:
- docker

before_script:
- docker-compose -f docker-compose.yml -f docker-compose-ci.yml build
- docker-compose up -d
- docker-compose -f docker-compose.yml -f docker-compose-ci.yml up --build -d

script:
- docker exec -it cvat /bin/bash -c 'tests/node_modules/.bin/karma start tests/karma.conf.js'
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ RUN if [ "$WITH_TESTS" = "yes" ]; then \
eslint-detailed-reporter \
karma \
karma-chrome-launcher \
karma-coveralls \
karma-coverage \
karma-junit-reporter \
karma-qunit \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/171a7953e058455fa2d9d4bfec2897c7)](https://app.codacy.com/app/DanVev/cvat?utm_source=github.com&utm_medium=referral&utm_content=itlab-vision/cvat&utm_campaign=Badge_Grade_Dashboard)
[![Build Status](https://travis-ci.org/itlab-vision/cvat.svg?branch=develop)](https://travis-ci.org/itlab-vision/cvat)
[![Coverage Status](https://coveralls.io/repos/github/EvgenyShashkin/cvat/badge.svg?branch=develop)](https://coveralls.io/github/EvgenyShashkin/cvat?branch=develop)
[![Gitter chat](https://badges.gitter.im/opencv-cvat/gitter.png)](https://gitter.im/opencv-cvat)

CVAT is completely re-designed and re-implemented version of [Video Annotation Tool from Irvine, California](http://carlvondrick.com/vatic/) tool. It is free, online, interactive video and image annotation tool for computer vision. It is being used by our team to annotate million of objects with different properties. Many UI and UX decisions are based on feedbacks from professional data annotation team.
Expand Down
3 changes: 3 additions & 0 deletions docker-compose-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ services:
build:
args:
WITH_TESTS: "yes"
environment:
COVERALLS_REPO_TOKEN:

4 changes: 2 additions & 2 deletions tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ module.exports = function(config) {
'**/!(qunitTests).js': ['coverage']
},

reporters: ['progress', 'junit', 'coverage'],
reporters: ['progress', 'junit', 'coverage', 'coveralls'],

coverageReporter: {
dir: path.join(process.env.HOME, 'media/coverage'),
reporters: [
{ type: 'html', subdir: '.' },
{ type: 'html', subdir: '.' }, { type: 'lcov', subdir: '.' }
],
instrumenterOptions: {
istanbul: { noCompact: true }
Expand Down

0 comments on commit 09af1c1

Please sign in to comment.