diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 77d706f..a1d614e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ image: hosttoday/ht-docker-node:npmci cache: paths: - - .yarn/ + - .npmci_cache/ key: "$CI_BUILD_STAGE" stages: @@ -26,8 +26,8 @@ mirror: snyk: stage: security script: - - npmci command yarn global add snyk - - npmci command yarn install --ignore-scripts + - npmci command npm install -g snyk + - npmci command npm install --ignore-scripts - npmci command snyk test tags: - docker @@ -117,8 +117,9 @@ pages: image: hosttoday/ht-docker-node:npmci stage: metadata script: - - npmci command yarn global add npmpage - - npmci command npmpage + - npmci command npm install -g typedoc typescript + - npmci npm install + - npmci command typedoc --module "commonjs" --target "ES2016" --out public/ ts/ tags: - docker - notpriv @@ -128,3 +129,14 @@ pages: expire_in: 1 week paths: - public + allow_failure: true + +windowsCompatibility: + image: stefanscherer/node-windows:10-build-tools + stage: metadata + script: + - npm install & npm test + coverage: /\d+.?\d+?\%\s*coverage/ + tags: + - windows + allow_failure: true diff --git a/package.json b/package.json index 092c092..8e15052 100644 --- a/package.json +++ b/package.json @@ -52,4 +52,4 @@ "through2": "^2.0.3" }, "private": false -} +} \ No newline at end of file diff --git a/readme.md b/readme.md index e8b2ec5..7296a5e 100644 --- a/readme.md +++ b/readme.md @@ -29,9 +29,9 @@ npmci is designed to work in docker CI environments. The following docker images Docker Hub: -* [hosttoday/ht-docker-node:npmci](https://hub.docker.com/r/hosttoday/ht-docker-node/) +- [hosttoday/ht-docker-node:npmci](https://hub.docker.com/r/hosttoday/ht-docker-node/) has LTS node version and npmci preinstalled. -* [hosttoday/ht-docker-dbase](https://hub.docker.com/r/hosttoday/ht-docker-dbase/) +- [hosttoday/ht-docker-dbase](https://hub.docker.com/r/hosttoday/ht-docker-dbase/) based on docker:git, can be used to build docker images in conjunction with docker:dind npmci can be called from commandline and handle a lot of tasks durug ci: @@ -71,7 +71,7 @@ npmci publish npm # will look vor $NPMCI_TOKEN_NPM env var and push any module i npmci publish docker # trigger webhooks -npmci trigger # will look for NPMCI_TRIGGER_1 to NPMCI_TRIGGER_100 in form domain|id|token|ref|name +npmci trigger # will look for NPMCI_TRIGGER_1 to NPMCI_TRIGGER_100 in form domain|id|token|ref|name ``` ## Configuration