Skip to content

Commit e2f53c4

Browse files
committed
Build settings.
1 parent 0e1492b commit e2f53c4

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ bower_components/
66
*.iml
77

88
coverage/
9+
junit/

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ results
1414
npm-debug.log
1515
node_modules
1616

17+
junit/
1718
coverage/
1819
doc/
1920
bower_components/

circle.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ dependencies:
66
test:
77
override:
88
- npm run ci
9+
general:
10+
artifacts:
11+
- "dist"
12+
- "coverage"

karma.conf.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ module.exports = function (config) {
3030
'karma-phantomjs-launcher',
3131
'karma-firefox-launcher',
3232
'karma-coverage',
33-
'karma-browserstack-launcher'
33+
'karma-browserstack-launcher',
34+
'karma-junit-reporter'
3435
],
3536
autoWatch: false,
3637
autoWatchBatchDelay: 4000,
@@ -45,7 +46,7 @@ module.exports = function (config) {
4546
'test/**/*.js'
4647
],
4748

48-
reporters: ['dots', 'coverage'],
49+
reporters: ['dots', 'coverage', 'junit'],
4950

5051
preprocessors: {
5152
'dist/js-data-http.js': ['coverage']
@@ -57,6 +58,14 @@ module.exports = function (config) {
5758
dir: 'coverage/'
5859
},
5960

61+
// the default configuration
62+
junitReporter: {
63+
outputDir: process.env.CIRCLE_TEST_REPORTS || 'junit',
64+
outputFile: undefined,
65+
suite: 'js-data-http',
66+
useBrowserName: false
67+
},
68+
6069
browserStack: {
6170
username: process.env.BROWSERSTACK_USERNAME,
6271
accessKey: process.env.BROWSERSTACK_ACCESS_KEY

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"karma-chrome-launcher": "0.2.1",
4141
"karma-coverage": "0.5.3",
4242
"karma-firefox-launcher": "0.1.6",
43+
"karma-junit-reporter": "0.3.8",
4344
"karma-mocha": "0.2.0",
4445
"karma-phantomjs-launcher": "0.2.1",
4546
"karma-sinon": "1.0.4",

0 commit comments

Comments
 (0)