Skip to content

Commit 437c1af

Browse files
committed
Travis CI preparation
1 parent c97017c commit 437c1af

File tree

7 files changed

+34476
-21
lines changed

7 files changed

+34476
-21
lines changed

karma.conf.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ module.exports = function(config) {
1414

1515
// list of files / patterns to load in the browser
1616
files: [
17-
'http://code.jquery.com/jquery-2.1.0.min.js',
18-
'https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js',
19-
'https://code.angularjs.org/1.2.16/angular-mocks.js',
20-
'bower_components/tv4/tv4.js',
17+
'test/lib/jquery.js',
18+
'test/lib/angular.js',
19+
'test/lib/angular-mocks.js',
20+
'test/lib/tv4.js',
2121
'src/module.js',
2222
'src/services/*.js',
2323
'src/directives/*.js',
2424
'src/directives/decorators/bootstrap/*.js',
2525
'src/directives/decorators/bootstrap/datepicker/*.js',
2626
'src/**/*.html',
27-
'test/*.js'
27+
'test/schema-form-test.js'
2828
],
2929

3030

@@ -83,7 +83,7 @@ module.exports = function(config) {
8383
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
8484
// - PhantomJS
8585
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
86-
browsers: [],
86+
browsers: ['PhantomJS'],
8787

8888

8989
// If browser does not capture in given timeout [ms], kill it

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
"version": "0.4.0",
44
"description": "Create forms from a JSON schema",
55
"scripts": {
6-
"test": "echo \"Error: no test specified\" && exit 1"
6+
"test": "./node_modules/karma/bin/karma start --single-run --browsers PhantomJS"
77
},
88
"author": "Textalk",
99
"license": "MIT",
1010
"devDependencies": {
11-
"karma": "^0.12.0",
12-
"mocha": "^1.18.0",
13-
"karma-mocha": "^0.1.3",
14-
"karma-phantomjs-launcher": "^0.1.2",
15-
"karma-coverage": "^0.2.1",
16-
"sinon-chai": "^2.5.0",
17-
"sinon": "^1.9.0",
1811
"chai": "^1.9.0",
12+
"gulp": "^3.5.6",
13+
"gulp-angular-templatecache": "^1.1.1",
14+
"gulp-concat": "^2.2.0",
15+
"gulp-minify-html": "^0.1.1",
16+
"gulp-uglify": "^0.2.1",
17+
"karma": "^0.12.0",
1918
"karma-chai-sinon": "^0.1.3",
19+
"karma-coverage": "^0.2.1",
2020
"karma-growler-reporter": "0.0.1",
21+
"karma-mocha": "^0.1.3",
2122
"karma-ng-html2js-preprocessor": "^0.1.0",
22-
"gulp": "^3.5.6",
23-
"gulp-uglify": "^0.2.1",
24-
"gulp-minify-html": "^0.1.1",
25-
"gulp-concat": "^2.2.0",
26-
"streamqueue": "0.0.5",
27-
"gulp-angular-templatecache": "^1.1.1"
23+
"karma-phantomjs-launcher": "^0.1.4",
24+
"mocha": "^1.18.0",
25+
"sinon": "^1.9.0",
26+
"sinon-chai": "^2.5.0",
27+
"streamqueue": "0.0.5"
2828
}
2929
}

0 commit comments

Comments
 (0)