Compare commits

..

6 Commits

Author SHA1 Message Date
ffc781011d 4.0.3 2018-02-14 00:29:00 +01:00
aeec1b36a3 fix CI 2018-02-14 00:28:56 +01:00
4c2e7f9446 4.0.2 2018-02-14 00:15:51 +01:00
dddad457f3 update npmextra 2018-02-14 00:15:47 +01:00
4f110c6e64 4.0.1 2018-02-14 00:13:16 +01:00
12d971c470 update ci 2018-02-14 00:13:12 +01:00
4 changed files with 50 additions and 16 deletions

View File

@ -7,60 +7,85 @@ cache:
key: "$CI_BUILD_STAGE"
stages:
- mirror
- security
- test
- release
- trigger
- pages
mirror:
stage: mirror
script:
- npmci git mirror
tags:
- docker
security:
stage: security
script:
- npmci command yarn global add snyk
- npmci command yarn install --ignore-scripts
- npmci command snyk test
tags:
- docker
testLEGACY:
stage: test
script:
- npmci test legacy
- npmci node install legacy
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- docker
allow_failure: true
testLTS:
stage: test
script:
- npmci test lts
- npmci node install lts
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- docker
testSTABLE:
stage: test
script:
- npmci test stable
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- docker
release:
stage: release
script:
- npmci publish
- npmci npm prepare
- npmci npm publish
only:
- tags
- tags
tags:
- docker
- docker
trigger:
stage: trigger
script:
- npmci trigger
- npmci trigger
only:
- tags
- tags
tags:
- docker
- docker
pages:
image: hosttoday/ht-docker-node:npmci
stage: pages
script:
- npmci command yarn global add npmpage
- npmci command npmpage --publish gitlab
- npmci command npmpage
tags:
- docker
only:

View File

@ -1,6 +1,9 @@
{
"npmts": {
"coverageTreshold": 60
},
"npmci": {
"globalNpmTools": [
"npmGlobalTools": [
"npmts"
]
}

View File

@ -1,6 +1,6 @@
{
"name": "smartenv",
"version": "4.0.0",
"version": "4.0.3",
"description": "store things about your environment and let them travel across modules",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

View File

@ -12,8 +12,8 @@ tap.test('should print a overview to console', async () => {
})
tap.test('should get os', async () => {
let resultMac = await testEnv.isMacAsync()
let resultLinux = await testEnv.isLinuxAsync()
let resultMac = await testEnv.isMacAsync
let resultWindows = await testEnv.isWindowsAsync()
const osModule = await import('os')
if (resultMac) {
@ -29,4 +29,10 @@ tap.test('should get os', async () => {
})
tap.test('should state wether we are in CI', async () => {
if(process.env.CI) {
expect(testEnv.isCI).to.be.true()
}
})
tap.start()