ht-docker-dbase/.gitlab-ci.yml

66 lines
1.2 KiB
YAML
Raw Normal View History

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
2019-11-23 21:29:08 +00:00
- apk add --no-cache krb5-libs
2019-08-27 16:12:23 +00:00
- update-ca-certificates
2019-11-23 21:32:41 +00:00
- cp ./stack-fix.c /lib/
2019-11-23 21:34:07 +00:00
- set -ex
- apk add --no-cache --virtual .build-deps build-base
- gcc -shared -fPIC /lib/stack-fix.c -o /lib/stack-fix.so \
- apk del .build-deps
2019-11-23 21:35:32 +00:00
- export LD_PRELOAD="/lib/stack-fix.so"
2019-08-27 16:12:23 +00:00
- 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