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

View File

@@ -1,12 +1,12 @@
'use strict';
module.exports = function (config) {
config.set({
var configuration = {
basePath: '.',
frameworks: ['jasmine'],
files: [
// paths loaded by Karma
{pattern: 'node_modules/angular2/bundles/angular2-polyfills.js', included: true, watched: true},
@@ -54,6 +54,13 @@ module.exports = function (config) {
browsers: ['Chrome'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Karma plugins loaded
plugins: [
'karma-jasmine',
@@ -81,5 +88,11 @@ module.exports = function (config) {
{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",
"systemjs": "0.19.26",
"zone.js": "^0.6.12",
"alfresco-js-api": "^0.1.0"
"alfresco-js-api": "^0.1.0",
"ng2-translate": "1.11.1"
},
"devDependencies": {
"concurrently": "^2.1.0",

View File

@@ -1,8 +1,7 @@
'use strict';
module.exports = function (config) {
config.set({
var configuration = {
basePath: '.',
frameworks: ['jasmine'],
@@ -50,6 +49,13 @@ module.exports = function (config) {
browsers: ['Chrome'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Karma plugins loaded
plugins: [
'karma-jasmine',
@@ -80,5 +86,11 @@ module.exports = function (config) {
},
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",
"systemjs": "0.19.26",
"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": {
"angular2": "2.0.0-beta.15"

View File

@@ -1,8 +1,7 @@
'use strict';
module.exports = function (config) {
config.set({
var configuration = {
basePath: '.',
frameworks: ['jasmine'],
@@ -47,6 +46,15 @@ module.exports = function (config) {
browsers: ['Chrome'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Karma plugins loaded
plugins: [
'karma-jasmine',
@@ -77,5 +85,11 @@ module.exports = function (config) {
},
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",
"zone.js": "^0.6.12",
"es6-module-loader": "^0.17.8",
"alfresco-js-api": "^0.1.0"
"alfresco-js-api": "^0.1.0",
"ng2-translate": "1.11.1"
},
"peerDependencies": {
"angular2": "2.0.0-beta.15"

View File

@@ -1,8 +1,7 @@
'use strict';
module.exports = function (config) {
config.set({
var configuration = {
basePath: '.',
frameworks: ['jasmine-ajax', 'jasmine'],
@@ -50,6 +49,13 @@ module.exports = function (config) {
browsers: ['Chrome'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
// Karma plugins loaded
plugins: [
'karma-jasmine',
@@ -80,5 +86,11 @@ module.exports = function (config) {
},
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",
"rxjs": "5.0.0-beta.2",
"systemjs": "0.19.26",
"zone.js": "^0.6.12"
"zone.js": "^0.6.12",
"ng2-translate": "1.11.1"
},
"peerDependencies": {
"angular2": "2.0.0-beta.15"