travis support

stable
Juanfran 2015-05-27 09:00:09 +02:00
parent 6e8a0600d9
commit d3a97abab1
3 changed files with 31 additions and 3 deletions

14
.travis.yml Normal file
View File

@ -0,0 +1,14 @@
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm install -g bower
- npm install -g gulp
install:
- npm install
- bower install
before_script:
- gulp deploy
language: node_js
node_js:
- "0.12"

View File

@ -2,7 +2,7 @@
// Generated on Wed Apr 15 2015 09:44:14 GMT+0200 (CEST)
module.exports = function(config) {
config.set({
var configuration = {
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
@ -78,9 +78,22 @@ module.exports = function(config) {
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false
});
};
if(process.env.TRAVIS){
configuration.browsers = ['Chrome_travis_ci'];
configuration.singleRun = true;
}
config.set(configuration);
};

View File

@ -17,7 +17,8 @@
}
],
"scripts": {
"scss-lint": "gulp scss-lint --fail"
"scss-lint": "gulp scss-lint --fail",
"test": "./node_modules/karma/bin/karma start"
},
"devDependencies": {
"angular-mocks": "^1.3.15",