update ci

This commit is contained in:
Philipp Kunz 2017-08-28 13:14:35 +02:00
parent 9d386f7c45
commit 824efb1fc8
6 changed files with 60 additions and 54 deletions

View File

@ -15,7 +15,9 @@ stages:
testLEGACY:
stage: test
script:
- npmci test legacy
- npmci node install legacy
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
@ -24,7 +26,9 @@ testLEGACY:
testLTS:
stage: test
script:
- npmci test lts
- npmci node install lts
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
@ -32,7 +36,9 @@ testLTS:
testSTABLE:
stage: test
script:
- npmci test stable
- npmci node install lts
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
@ -40,7 +46,8 @@ testSTABLE:
release:
stage: release
script:
- npmci publish
- npmci npm prepare
- npmci npm publish
only:
- tags
tags:

View File

@ -39,4 +39,4 @@ exports.beautyConsole = {
}
};
route(true);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLmNvbnNvbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9iZWF1dHlsb2cuY29uc29sZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDBCQUF1QjtBQUV2QixtRUFBOEQ7QUFDOUQsSUFBSSxTQUFTLEdBQUcsT0FBTyxDQUFDLEdBQUcsQ0FBQTtBQUMzQixJQUFJLFdBQVcsR0FBRyxPQUFPLENBQUMsS0FBSyxDQUFBO0FBRS9COztHQUVHO0FBQ0gsSUFBSSxLQUFLLEdBQUcsVUFBUyxTQUFrQjtJQUNuQyxFQUFFLENBQUMsQ0FBQyxTQUFTLEtBQUssSUFBSSxDQUFDLENBQUMsQ0FBQztRQUNyQixPQUFPLENBQUMsR0FBRyxHQUFHLHFCQUFhLENBQUMsR0FBRyxDQUFBO1FBQy9CLE9BQU8sQ0FBQyxLQ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BQUM7SUFDRCxLQUFLLEVBQUU7UUFDTCxFQUFFLENBQUMsQ0FBQyxpQ0FBUyxDQUFDLENBQUMsQ0FBQztZQUNkLGlDQUFTLENBQUMsS0FBSyxFQUFFLENBQUE7WUFDakIsU0FBUyxDQUFDLEtBQUssQ0FBQyxXQUFXLEVBQUUsU0FBUyxDQUFDLENBQUE7WUFDdkMsaUNBQVMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtRQUNuQixDQUFDO1FBQUMsSUFBSSxDQUFDLENBQUM7WUFDTixTQUFTLENBQUMsS0FBSyxDQUFDLFdBQVcsRUFBRSxTQUFTLENBQUMsQ0FBQTtRQUN6QyxDQUFDO0lBQ0gsQ0FBQztDQUNGLENBQUE7QUFFRCxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUEifQ==

View File

@ -84,4 +84,4 @@ exports.logReduced = (logTextArg, repeatEveryTimesArg = 0) => {
};
let previousMessage = '';
let sameMessageCounter = 0;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLmxvZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2JlYXV0eWxvZy5sb2cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwwQkFBdUI7QUFFdkIsbUVBQW1EO0FBRW5EOzs7O0dBSUc7QUFFUSxRQUFBLEdBQUcsR0FBRyxDQUFDLE9BQU87SUFDckIsTUFBTSxDQUFDLG1DQUFXLENBQUMsS0FBSyxFQUFDLE9BQU8sQ0FBQyxDQUFBO0FBQ3JDLENBQUMsQ0FBQTtBQUVVLFFBQUEsSUFBSSxHQUFHLENBQUMsT0FBTztJQUN0QixNQUFNLENBQUMsbUNBQVcsQ0FBQyxNQUFNLEVBQUMsT0FBTyxDQUFDLENBQUE7QUFDdEMsQ0FBQyxDQUFBO0FBRUQ7Ozs7R0FJRztBQUNRLFFBQUEsRUFBRSxHQUFHLENB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BQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxRQUFRLEVBQUUsQ0FBQyxFQUFFLEVBQUUsQ0FBQztRQUNsQyxPQUFPLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFBO0lBQ25CLENBQUM7QUFDSCxDQUFDLENBQUE7QUFFRDs7R0FFRztBQUNRLFFBQUEsVUFBVSxHQUFHLENBQUMsVUFBa0IsRUFBRSxzQkFBOEIsQ0FBQztJQUMxRSxFQUFFLENBQUMsQ0FBQyxVQUFVLEtBQUssZUFBZSxJQUFJLENBQUMsbUJBQW1CLEtBQUssQ0FBQyxJQUFJLGtCQUFrQixLQUFLLG1CQUFtQixDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ2hILGtCQUFrQixFQUFFLENBQUE7SUFDdEIsQ0FBQztJQUFDLElBQUksQ0FBQyxDQUFDO1FBQ04sa0JBQWtCLEdBQUcsQ0FBQyxDQUFBO1FBQ3RCLGVBQWUsR0FBRyxVQUFVLENBQUE7UUFDNUIsV0FBRyxDQUFDLFVBQVUsQ0FBQyxDQUFBO0lBQ2pCLENBQUM7QUFDSCxDQUFDLENBQUE7QUFDRCxJQUFJLGVBQWUsR0FBVyxFQUFFLENBQUE7QUFDaEMsSUFBSSxrQkFBa0IsR0FBVyxDQUFDLENBQUEifQ==

View File

@ -1,12 +1,11 @@
import { tap, expect } from 'tapbundle'
import beautylog = require('../dist/index')
import * as beautyremote from 'beautyremote'
import * as smartdelay from 'smartdelay'
import * as qenv from 'qenv'
let testQenv = new qenv.Qenv(process.cwd(), process.cwd() + '/.nogit')
import * as smartdelay from 'smartdelay'
import * as beautyremote from 'beautyremote'
import beautylog = require('../ts/index')
tap.test('.registerRemote should accept a beautyremote', async () => {
let myRemote = new beautyremote.Loggly({

View File

@ -7,7 +7,7 @@ let nativeError = console.error
/**
* routes the console to got through beautylog, so beautylog can take action before things are logged to console.
*/
let route = function(statusArg: boolean){
let route = function (statusArg: boolean) {
if (statusArg === true) {
console.log = beautyConsole.log
console.error = beautyConsole.error
@ -17,7 +17,7 @@ let route = function(statusArg: boolean){
}
export let beautyConsole = {
log: function(logArg: any) {
log: function (logArg: any) {
if (oraActive) {
activeOra.pause()
nativeLog.apply(nativeLog, arguments)
@ -26,7 +26,7 @@ export let beautyConsole = {
nativeLog.apply(nativeLog, arguments)
}
},
error: function(){
error: function () {
if (oraActive) {
activeOra.pause()
nativeLog.apply(nativeError, arguments)

View File

@ -1,6 +1,6 @@
import 'typings-global'
import {internalLog} from './beautylog.log.helpers'
import { internalLog } from './beautylog.log.helpers'
/**
* logs an info to console
@ -9,11 +9,11 @@ import {internalLog} from './beautylog.log.helpers'
*/
export let log = (logText) => {
return internalLog('log',logText)
return internalLog('log', logText)
}
export let info = (logText) => {
return internalLog('info',logText)
return internalLog('info', logText)
}
/**
@ -22,7 +22,7 @@ export let info = (logText) => {
* @returns {boolean}
*/
export let ok = (logText) => {
return internalLog('ok',logText)
return internalLog('ok', logText)
}
/**
@ -31,7 +31,7 @@ export let ok = (logText) => {
* @returns {boolean}
*/
export let success = (logText) => {
return internalLog('success',logText)
return internalLog('success', logText)
}
/**
@ -40,7 +40,7 @@ export let success = (logText) => {
* @returns {boolean}
*/
export let warn = (logText) => {
return internalLog('warn',logText)
return internalLog('warn', logText)
}
/**
@ -49,7 +49,7 @@ export let warn = (logText) => {
* @returns {boolean}
*/
export let error = (logText) => {
return internalLog('error',logText)
return internalLog('error', logText)
}
/**
@ -58,7 +58,7 @@ export let error = (logText) => {
* @returns {boolean}
*/
export let dir = (logText) => {
return internalLog('dir',logText)
return internalLog('dir', logText)
}
/**
@ -82,7 +82,7 @@ export let newLine = (linesArg: number = 1) => {
/**
* logs a reduced log that only logs changes of consequential log messages
*/
export let logReduced = (logTextArg: string,repeatEveryTimesArg: number = 0) => {
export let logReduced = (logTextArg: string, repeatEveryTimesArg: number = 0) => {
if (logTextArg === previousMessage && (repeatEveryTimesArg === 0 || sameMessageCounter !== repeatEveryTimesArg)) {
sameMessageCounter++
} else {