2019-08-27 16:03:34 +00:00
|
|
|
# gitzone custom
|
2019-08-27 15:56:33 +00:00
|
|
|
image: docker:19.03.1
|
2019-08-27 16:12:23 +00:00
|
|
|
services:
|
|
|
|
- docker:stable-dind
|
2016-06-02 11:59:58 +00:00
|
|
|
|
|
|
|
before_script:
|
2019-08-27 16:12:23 +00:00
|
|
|
- apk update
|
|
|
|
- apk add --no-cache git openssl ca-certificates bash curl
|
|
|
|
- apk add --no-cache make gcc g++ python linux-headers paxctl
|
|
|
|
- apk add --no-cache libgcc libstdc++ gnupg nodejs nodejs-npm
|
|
|
|
- update-ca-certificates
|
|
|
|
- npm config set unsafe-perm true
|
|
|
|
- npm install -g @shipzone/npmci
|
|
|
|
- npmci npm prepare
|
2016-06-02 11:59:58 +00:00
|
|
|
|
2019-06-19 09:47:48 +00:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- release
|
|
|
|
- trigger
|
|
|
|
- pages
|
2016-06-07 14:10:08 +00:00
|
|
|
|
2019-06-19 09:47:48 +00:00
|
|
|
testSTABLE:
|
2016-06-07 14:10:08 +00:00
|
|
|
stage: test
|
|
|
|
script:
|
2019-08-27 16:12:23 +00:00
|
|
|
- npmci node install stable
|
|
|
|
- npmci npm install
|
|
|
|
- npmci npm test
|
2019-06-19 09:47:48 +00:00
|
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
2016-06-07 14:10:08 +00:00
|
|
|
tags:
|
2019-08-27 16:12:23 +00:00
|
|
|
- docker
|
|
|
|
- lossless
|
|
|
|
- priv
|
2016-06-07 14:10:08 +00:00
|
|
|
|
2016-06-02 11:59:58 +00:00
|
|
|
release:
|
|
|
|
stage: release
|
|
|
|
script:
|
2019-06-19 09:47:48 +00:00
|
|
|
- npmci node install stable
|
|
|
|
- npmci docker login
|
|
|
|
- npmci docker build
|
|
|
|
- npmci docker test
|
2019-06-19 09:55:12 +00:00
|
|
|
- npmci docker push
|
2016-06-02 11:59:58 +00:00
|
|
|
only:
|
2019-06-19 09:47:48 +00:00
|
|
|
- tags
|
2016-06-07 21:26:09 +00:00
|
|
|
tags:
|
2019-06-19 09:47:48 +00:00
|
|
|
- docker
|
2019-08-27 16:12:23 +00:00
|
|
|
- lossless
|
2019-06-19 09:47:48 +00:00
|
|
|
- priv
|
|
|
|
|
2016-06-07 21:26:09 +00:00
|
|
|
trigger:
|
|
|
|
stage: trigger
|
|
|
|
script:
|
2019-08-27 16:12:23 +00:00
|
|
|
- npmci trigger
|
2016-06-07 21:26:09 +00:00
|
|
|
only:
|
2019-08-27 16:12:23 +00:00
|
|
|
- tags
|
2016-06-02 11:59:58 +00:00
|
|
|
tags:
|
2019-08-27 16:12:23 +00:00
|
|
|
- docker
|
|
|
|
- lossless
|
|
|
|
- priv
|