package and karma modified to act with travis

This commit is contained in:
Enzo Rivello
2016-06-09 16:46:46 +01:00
parent 2fb5b62ed4
commit 1553f721ef
9 changed files with 86 additions and 19 deletions

View File

@@ -1,8 +1,7 @@
'use strict'; 'use strict';
module.exports = function (config) { module.exports = function (config) {
config.set({ var configuration = {
basePath: '.', basePath: '.',
frameworks: ['jasmine'], frameworks: ['jasmine'],
@@ -46,6 +45,14 @@ module.exports = function (config) {
browsers: ['Chrome'], browsers: ['Chrome'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Karma plugins loaded // Karma plugins loaded
plugins: [ plugins: [
'karma-jasmine', 'karma-jasmine',
@@ -76,5 +83,10 @@ module.exports = function (config) {
}, },
singleRun: true singleRun: true
}) }
if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci'];
}
config.set(configuration)
}; };

View File

@@ -1,12 +1,12 @@
'use strict'; 'use strict';
module.exports = function (config) { module.exports = function (config) {
config.set({ var configuration = {
basePath: '.', basePath: '.',
frameworks: ['jasmine'], frameworks: ['jasmine'],
files: [ files: [
// paths loaded by Karma // paths loaded by Karma
{pattern: 'node_modules/angular2/bundles/angular2-polyfills.js', included: true, watched: true}, {pattern: 'node_modules/angular2/bundles/angular2-polyfills.js', included: true, watched: true},
@@ -54,6 +54,13 @@ module.exports = function (config) {
browsers: ['Chrome'], browsers: ['Chrome'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Karma plugins loaded // Karma plugins loaded
plugins: [ plugins: [
'karma-jasmine', 'karma-jasmine',
@@ -81,5 +88,11 @@ module.exports = function (config) {
{type: 'html'} {type: 'html'}
] ]
} }
}) }
if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci'];
}
config.set(configuration)
}; };

View File

@@ -62,7 +62,8 @@
"rxjs": "5.0.0-beta.2", "rxjs": "5.0.0-beta.2",
"systemjs": "0.19.26", "systemjs": "0.19.26",
"zone.js": "^0.6.12", "zone.js": "^0.6.12",
"alfresco-js-api": "^0.1.0" "alfresco-js-api": "^0.1.0",
"ng2-translate": "1.11.1"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^2.1.0", "concurrently": "^2.1.0",

View File

@@ -1,8 +1,7 @@
'use strict'; 'use strict';
module.exports = function (config) { module.exports = function (config) {
config.set({ var configuration = {
basePath: '.', basePath: '.',
frameworks: ['jasmine'], frameworks: ['jasmine'],
@@ -50,6 +49,13 @@ module.exports = function (config) {
browsers: ['Chrome'], browsers: ['Chrome'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Karma plugins loaded // Karma plugins loaded
plugins: [ plugins: [
'karma-jasmine', 'karma-jasmine',
@@ -80,5 +86,11 @@ module.exports = function (config) {
}, },
singleRun: true singleRun: true
}) }
if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci'];
}
config.set(configuration)
}; };

View File

@@ -70,7 +70,8 @@
"rxjs": "5.0.0-beta.2", "rxjs": "5.0.0-beta.2",
"systemjs": "0.19.26", "systemjs": "0.19.26",
"zone.js": "^0.6.12", "zone.js": "^0.6.12",
"alfresco-core-rest-api": "^0.1.0" "alfresco-core-rest-api": "^0.1.0",
"ng2-translate": "1.11.1"
}, },
"peerDependencies": { "peerDependencies": {
"angular2": "2.0.0-beta.15" "angular2": "2.0.0-beta.15"

View File

@@ -1,8 +1,7 @@
'use strict'; 'use strict';
module.exports = function (config) { module.exports = function (config) {
config.set({ var configuration = {
basePath: '.', basePath: '.',
frameworks: ['jasmine'], frameworks: ['jasmine'],
@@ -47,6 +46,15 @@ module.exports = function (config) {
browsers: ['Chrome'], browsers: ['Chrome'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Karma plugins loaded // Karma plugins loaded
plugins: [ plugins: [
'karma-jasmine', 'karma-jasmine',
@@ -77,5 +85,11 @@ module.exports = function (config) {
}, },
singleRun: true singleRun: true
}) }
if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci'];
}
config.set(configuration)
}; };

View File

@@ -56,7 +56,8 @@
"rxjs": "5.0.0-beta.2", "rxjs": "5.0.0-beta.2",
"zone.js": "^0.6.12", "zone.js": "^0.6.12",
"es6-module-loader": "^0.17.8", "es6-module-loader": "^0.17.8",
"alfresco-js-api": "^0.1.0" "alfresco-js-api": "^0.1.0",
"ng2-translate": "1.11.1"
}, },
"peerDependencies": { "peerDependencies": {
"angular2": "2.0.0-beta.15" "angular2": "2.0.0-beta.15"

View File

@@ -1,8 +1,7 @@
'use strict'; 'use strict';
module.exports = function (config) { module.exports = function (config) {
config.set({ var configuration = {
basePath: '.', basePath: '.',
frameworks: ['jasmine-ajax', 'jasmine'], frameworks: ['jasmine-ajax', 'jasmine'],
@@ -50,6 +49,13 @@ module.exports = function (config) {
browsers: ['Chrome'], browsers: ['Chrome'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Karma plugins loaded // Karma plugins loaded
plugins: [ plugins: [
'karma-jasmine', 'karma-jasmine',
@@ -80,5 +86,11 @@ module.exports = function (config) {
}, },
singleRun: true singleRun: true
}) }
if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci'];
}
config.set(configuration)
}; };

View File

@@ -61,7 +61,8 @@
"reflect-metadata": "0.1.2", "reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2", "rxjs": "5.0.0-beta.2",
"systemjs": "0.19.26", "systemjs": "0.19.26",
"zone.js": "^0.6.12" "zone.js": "^0.6.12",
"ng2-translate": "1.11.1"
}, },
"peerDependencies": { "peerDependencies": {
"angular2": "2.0.0-beta.15" "angular2": "2.0.0-beta.15"