Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge branch 'development' into 345-change-delegate-registration-moda…
Browse files Browse the repository at this point in the history
…l-header
  • Loading branch information
slaweet authored Jun 12, 2017
2 parents 7197506 + 87dbb25 commit fc8c233
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
environment {
ON_JENKINS = 'TRUE'
}
node('lisk-nano-01'){
lock(resource: "lisk-nano-01", inversePrecedence: true) {
stage ('Cleanup Orphaned Processes') {
Expand Down Expand Up @@ -70,6 +67,7 @@ node('lisk-nano-01'){
stage ('Run Tests') {
try {
sh '''
export ON_JENKINS=true
# Run test
cd $WORKSPACE
npm run test
Expand Down
9 changes: 3 additions & 6 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ preprocessors[testLibs] = ['webpack'];
preprocessors[test] = ['webpack'];

const opts = {
onTravis: process.env.ON_TRAVIS,
onJenkins: process.env.ON_JENKINS,
live: process.env.LIVE,
};
Expand Down Expand Up @@ -44,7 +43,7 @@ module.exports = function (config) {
// Rest results reporter to use
// Possible values: 'dots', 'progress'
// Available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['coverage', 'mocha'].concat(opts.onTravis ? ['coveralls'] : []).concat(opts.onJenkins ? ['coveralls'] : []),
reporters: ['coverage', 'mocha'].concat(opts.onJenkins ? ['coveralls'] : []),

preprocessors,

Expand Down Expand Up @@ -74,17 +73,14 @@ module.exports = function (config) {
autoWatch: opts.live,

ngHtml2JsPreprocessor: {
stripPrefix: 'app/components/',
stripPrefix: 'src/app/components/',
moduleName: 'my.templates',
},

coverageReporter: {
reporters: [{
type: 'text',
dir: 'coverage/',
}, {
type: opts.onTravis ? 'lcov' : 'html',
dir: 'coverage/',
}, {
type: opts.onJenkins ? 'lcov' : 'html',
dir: 'coverage/',
Expand Down Expand Up @@ -112,6 +108,7 @@ module.exports = function (config) {
'karma-chrome-launcher',
'karma-ng-html2js-preprocessor',
'karma-mocha-reporter',
'karma-jenkins-reporter',
'karma-coverage',
'karma-coveralls',
'karma-phantomjs-launcher',
Expand Down

0 comments on commit fc8c233

Please sign in to comment.