travis support
parent
6e8a0600d9
commit
d3a97abab1
|
@ -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"
|
|
@ -2,7 +2,7 @@
|
||||||
// Generated on Wed Apr 15 2015 09:44:14 GMT+0200 (CEST)
|
// Generated on Wed Apr 15 2015 09:44:14 GMT+0200 (CEST)
|
||||||
|
|
||||||
module.exports = function(config) {
|
module.exports = function(config) {
|
||||||
config.set({
|
var configuration = {
|
||||||
|
|
||||||
// base path that will be used to resolve all patterns (eg. files, exclude)
|
// base path that will be used to resolve all patterns (eg. files, exclude)
|
||||||
basePath: '',
|
basePath: '',
|
||||||
|
@ -78,9 +78,22 @@ module.exports = function(config) {
|
||||||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
||||||
browsers: ['Chrome'],
|
browsers: ['Chrome'],
|
||||||
|
|
||||||
|
customLaunchers: {
|
||||||
|
Chrome_travis_ci: {
|
||||||
|
base: 'Chrome',
|
||||||
|
flags: ['--no-sandbox']
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
// Continuous Integration mode
|
// Continuous Integration mode
|
||||||
// if true, Karma captures browsers, runs the tests and exits
|
// if true, Karma captures browsers, runs the tests and exits
|
||||||
singleRun: false
|
singleRun: false
|
||||||
});
|
};
|
||||||
|
|
||||||
|
if(process.env.TRAVIS){
|
||||||
|
configuration.browsers = ['Chrome_travis_ci'];
|
||||||
|
configuration.singleRun = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
config.set(configuration);
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,7 +17,8 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"scss-lint": "gulp scss-lint --fail"
|
"scss-lint": "gulp scss-lint --fail",
|
||||||
|
"test": "./node_modules/karma/bin/karma start"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"angular-mocks": "^1.3.15",
|
"angular-mocks": "^1.3.15",
|
||||||
|
|
Loading…
Reference in New Issue