Travis & Coverall for cvat.js (#580)

* Updated .travis.yml
* Updated CI
* Added badge
* Fixed codacy
main
Boris Sekachev 7 years ago committed by Nikita Manovich
parent 6d7a04086f
commit 8e20538086

@ -12,4 +12,5 @@ before_script:
- docker-compose -f docker-compose.yml -f docker-compose.ci.yml up --build -d
script:
- docker exec -it cvat /bin/bash -c 'python3 manage.py test cvat/apps/engine && tests/node_modules/.bin/karma start tests/karma.conf.js'
- docker exec -it cvat /bin/bash -c 'python3 manage.py test cvat/apps/engine'
- docker exec -it cvat /bin/bash -c 'cd cvatjs && npm install && npm run test && npm run coveralls'

@ -137,6 +137,7 @@ RUN if [ "$WITH_DEXTR" = "yes" ]; then \
COPY ssh ${HOME}/.ssh
COPY cvat/ ${HOME}/cvat
COPY cvatjs/ ${HOME}/cvatjs
COPY tests ${HOME}/tests
# Binary option is necessary to correctly apply the patch on Windows platform.
# https://unix.stackexchange.com/questions/239364/how-to-fix-hunk-1-failed-at-1-different-line-endings-message

@ -3,6 +3,7 @@
[![Build Status](https://travis-ci.org/opencv/cvat.svg?branch=develop)](https://travis-ci.org/opencv/cvat)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/840351da141e4eaeac6476fd19ec0a33)](https://app.codacy.com/app/nmanovic/cvat?utm_source=github.com&utm_medium=referral&utm_content=opencv/cvat&utm_campaign=Badge_Grade_Settings)
[![Gitter chat](https://badges.gitter.im/opencv-cvat/gitter.png)](https://gitter.im/opencv-cvat)
[![Coverage Status](https://coveralls.io/repos/github/opencv/cvat/badge.svg?branch=)](https://coveralls.io/github/opencv/cvat?branch=develop)
CVAT 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.

@ -10,6 +10,8 @@
const { defaults } = require('jest-config');
module.exports = {
coverageDirectory: 'reports/coverage',
coverageReporters: ['lcov'],
moduleFileExtensions: [
...defaults.moduleFileExtensions,
'ts',
@ -17,7 +19,7 @@ module.exports = {
],
reporters: [
'default',
'jest-junit',
['jest-junit', { outputDirectory: 'reports/junit' }],
],
testMatch: [
'**/tests/**/*.js',

@ -5,8 +5,9 @@
"main": "babel.config.js",
"scripts": {
"build": "webpack",
"test": "jest --config=jest.config.js",
"docs": "jsdoc --readme README.md src/*.js -p -c jsdoc.config.js -d docs"
"test": "jest --config=jest.config.js --coverage",
"docs": "jsdoc --readme README.md src/*.js -p -c jsdoc.config.js -d docs",
"coveralls": "cat ./reports/coverage/lcov.info | coveralls"
},
"author": "Intel",
"license": "MIT",
@ -17,6 +18,7 @@
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.6",
"core-js": "^3.0.1",
"coveralls": "^3.0.5",
"jest": "^24.8.0",
"jest-junit": "^6.4.0",
"jsdoc": "^3.6.2",

Loading…
Cancel
Save