fix(core): update

This commit is contained in:
Philipp Kunz 2019-09-05 13:09:13 +02:00
parent f0d7e5c998
commit 552d3dc211
4 changed files with 43 additions and 25 deletions

View File

@ -38,13 +38,25 @@ snyk:
# test stage # test stage
# ==================== # ====================
testLTS: testStable:
stage: test
script:
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
- priv
testBuild:
stage: test stage: test
script: script:
- npmci npm prepare - npmci npm prepare
- npmci node install lts - npmci node install lts
- npmci npm install - npmci npm install
- npmci npm test - npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
@ -86,7 +98,9 @@ trigger:
- notpriv - notpriv
pages: pages:
image: hosttoday/ht-docker-node:npmci image: hosttoday/ht-docker-dbase:npmci
services:
- docker:stable-dind
stage: metadata stage: metadata
script: script:
- npmci command npm install -g @gitzone/tsdoc - npmci command npm install -g @gitzone/tsdoc

View File

@ -27,9 +27,10 @@
"ts_web/*", "ts_web/*",
"dist/*", "dist/*",
"dist_web/*", "dist_web/*",
"dist_ts_web/*",
"assets/*", "assets/*",
"cli.js", "cli.js",
"npmextra.json", "npmextra.json",
"readme.md" "readme.md"
] ]
} }

View File

@ -101,6 +101,6 @@ mySlackMessage.sendToRoom('anotherroom')
For further information read the linked docs at the top of this readme. For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
[![repo-footer](https://mojoio.gitlab.io/assets/repo-footer.svg)](https://maintainedby.lossless.com) [![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)

View File

@ -37,25 +37,28 @@ tap.test('should send a message to Slack', async () => {
}); });
tap.test('should send a message to Slack by directly calling the message', async () => { tap.test('should send a message to Slack by directly calling the message', async () => {
testSlackMessage = new slackme.SlackMessage({ testSlackMessage = new slackme.SlackMessage(
author_name: 'GitLab CI', {
author_link: 'https://gitlab.com/', author_name: 'GitLab CI',
pretext: '*Good News*: Build successfull!', author_link: 'https://gitlab.com/',
color: '#3cb371', pretext: '*Good News*: Build successfull!',
fields: [ color: '#3cb371',
{ fields: [
title: 'Branch', {
value: 'Lossless Cloud', title: 'Branch',
short: true value: 'Lossless Cloud',
}, short: true
{ },
title: 'Product ID', {
value: 'pushrocks', title: 'Product ID',
short: true value: 'pushrocks',
} short: true
], }
ts: new Date().getTime() / 1000 ],
}, testSlackme); ts: new Date().getTime() / 1000
},
testSlackme
);
await testSlackMessage.sendToRoom('random'); await testSlackMessage.sendToRoom('random');
}); });