configure Travis continuous integration
It will run gulp karma:single , and fail if that fails.
This commit is contained in:
parent
98d2f94a3a
commit
4893c5b304
6
.travis.yml
Normal file
6
.travis.yml
Normal file
@ -0,0 +1,6 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "4.1"
|
||||
before_script:
|
||||
- npm install -g gulp
|
||||
script: gulp karma:single
|
@ -5,7 +5,13 @@ module.exports = function(karma) {
|
||||
var globs = _.flatten([
|
||||
config.globs.js,
|
||||
config.globs.spec
|
||||
]);
|
||||
]),
|
||||
browser = 'Chrome';
|
||||
|
||||
if (process.env.TRAVIS) {
|
||||
globs.unshift('node_modules/babel-polyfill/dist/polyfill.js');
|
||||
browser = 'PhantomJS';
|
||||
}
|
||||
|
||||
karma.set({
|
||||
frameworks: ['browserify', 'jasmine'],
|
||||
@ -17,7 +23,7 @@ module.exports = function(karma) {
|
||||
reporters: ['progress', 'notify'],
|
||||
colors: true,
|
||||
logLevel: karma.LOG_INFO,
|
||||
browsers: ['Chrome'],
|
||||
browsers: [browser],
|
||||
autoWatch: true,
|
||||
singleRun: false,
|
||||
browserify: _.extend({
|
||||
|
@ -36,6 +36,7 @@
|
||||
"karma-chrome-launcher": "^0.2.2",
|
||||
"karma-jasmine": "^0.3.1",
|
||||
"karma-notify-reporter": "^0.1.1",
|
||||
"karma-phantomjs-launcher": "^0.2.2",
|
||||
"lodash": "^3.10.1",
|
||||
"node-bourbon": "^4.2.3",
|
||||
"snapsvg": "^0.4.0",
|
||||
|
Loading…
Reference in New Issue
Block a user