Skip to content

Commit

Permalink
chore: remove travis (straker#364)
Browse files Browse the repository at this point in the history
* chore: remove travis

* switch to karma-coverage

* remove id

* remove coverage badge

* build badge

* chrome

* remove istanbul instrumenter

* cleanup
  • Loading branch information
straker committed Jul 3, 2023
1 parent 7cd7fe5 commit 113e7a4
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 249 deletions.
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[![Version](https://badge.fury.io/js/kontra.svg)](https://badge.fury.io/js/kontra)
[![Build Status](https://app.travis-ci.com/straker/kontra.svg?branch=main)](https://app.travis-ci.com/straker/kontra)
[![Coverage Status](https://coveralls.io/repos/straker/kontra/badge.svg?branch=main&service=github)](https://coveralls.io/github/straker/kontra?branch=main)
[![Build Status](https://github.com/straker/kontra/actions/workflows/tests.yml/badge.svg)](https://github.com/straker/kontra/actions)

# Kontra.js

Expand Down
26 changes: 15 additions & 11 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,28 @@ module.exports = function (config) {
{ pattern: 'test/unit/*.spec.js', type: 'module' },
{ pattern: 'test/integration/*.spec.js', type: 'module' }
],
preprocessors: DEBUG
? {}
: {
'src/*.js': ['karma-coverage-istanbul-instrumenter']
},
browsers: [DEBUG ? 'Chrome' : 'ChromeHeadless'],
proxies: {
'/imgs': '/base/test/imgs',
'/audio': '/base/test/audio',
'/data': '/base/test/data'
},
coverageIstanbulInstrumenter: {
esModules: true
reporters: ['mocha', 'coverage'],
preprocessors: {
'src/**/*.js': ['coverage']
},
reporters: DEBUG ? ['mocha'] : ['mocha', 'coverage-istanbul'],
coverageIstanbulReporter: {
reports: ['html', 'lcovonly', 'text-summary'],
dir: 'coverage/'
coverageReporter: {
check: {
emitWarning: false,
global: {
statements: 95,
branches: 95,
functions: 95,
lines: 95
}
},
type: 'html',
dir : 'coverage/'
},
client: {
mocha: {
Expand Down
Loading

0 comments on commit 113e7a4

Please sign in to comment.