Skip to content

Commit 03c5035

Browse files
committed
Merge pull request #22 from eysteinbye/Deployment
#20 Automatic change the test-server
2 parents 72eee17 + 86aa581 commit 03c5035

File tree

2 files changed

+7
-46
lines changed

2 files changed

+7
-46
lines changed

DEMO.md

Whitespace-only changes.

karma.conf.js

+7-46
Original file line numberDiff line numberDiff line change
@@ -2,89 +2,50 @@
22
// Generated on Tue Mar 11 2014 15:30:22 GMT+0100 (CET)
33

44

5-
6-
/*
7-
if (require('os').platform() === 'darwin') {
8-
browsers.push('Safari')
9-
}
10-
*/
11-
12-
135
module.exports = function(config) {
6+
//console.log(process);
7+
//console.log(require('os').platform()); // darwin
148

159
browserToTestIn = ['PhantomJS'];
10+
//browserToTestIn = ['Chrome']; // Use when we need debug 8It would be nice to detect debug mode)
1611
if (process.env.TRAVISCI) {
1712
browserToTestIn = ['Firefox'];
1813
}
1914

20-
2115
config.set({
22-
23-
// base path that will be used to resolve all patterns (eg. files, exclude)
2416
basePath: '',
25-
26-
27-
// frameworks to use
28-
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
2917
frameworks: ['jasmine'],
3018

19+
browsers: browserToTestIn,
3120

32-
// list of files / patterns to load in the browser
33-
files: [
21+
files: [
3422
'lib/angular/angular.min.js',
3523
'lib/angular/angular-mocks.js',
3624
'js/*.js',
3725
'test/*.js'
3826
],
3927

40-
41-
// list of files to exclude
42-
exclude: [
43-
44-
],
45-
46-
47-
// preprocess matching files before serving them to the browser
48-
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
49-
preprocessors: {
50-
51-
},
52-
53-
54-
// test results reporter to use
5528
// possible values: 'dots', 'progress'
56-
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
5729
reporters: ['progress'],
5830

59-
6031
// web server port
61-
// port: 9876,
62-
32+
// port: 9876,
6333

6434
// enable / disable colors in the output (reporters and logs)
6535
colors: true,
6636

67-
6837
// level of logging
6938
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
7039
logLevel: config.LOG_INFO,
7140

72-
7341
// enable / disable watching file and executing tests whenever any file changes
7442
autoWatch: false,
7543

76-
77-
// start these browsers
78-
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
79-
// browsers: ['Chrome'],
80-
// browsers: ['PhantomJS','Chrome'],
81-
// browsers: ['PhantomJS'],
82-
browsers: browserToTestIn,
83-
8444
plugins : [
8545
'karma-phantomjs-launcher',
8646
'karma-junit-reporter',
8747
'karma-firefox-launcher',
48+
'karma-chrome-launcher',
8849
'karma-jasmine'
8950
],
9051

0 commit comments

Comments
 (0)