tscoverage/.gitlab-ci.yml

124 lines
2.0 KiB
YAML
Raw Normal View History

2017-04-30 16:22:34 +00:00
# gitzone standard
2016-08-30 21:18:04 +00:00
image: hosttoday/ht-docker-node:npmci
2016-05-26 19:18:14 +00:00
2017-04-30 16:22:34 +00:00
cache:
paths:
- .yarn/
key: "$CI_BUILD_STAGE"
2016-05-26 19:18:14 +00:00
stages:
- security
2016-05-26 19:18:14 +00:00
- test
- release
2016-06-09 22:55:29 +00:00
- trigger
2016-08-30 21:18:04 +00:00
- pages
2016-05-26 19:18:14 +00:00
2017-09-13 15:47:30 +00:00
mirror:
stage: security
2017-09-13 15:47:30 +00:00
script:
- npmci git mirror
2017-09-13 15:47:30 +00:00
tags:
- docker
2018-05-03 16:05:37 +00:00
- notpriv
snyk:
stage: security
script:
- npmci command yarn global add snyk
- npmci command yarn install --ignore-scripts
- npmci command snyk test
tags:
- docker
2018-05-03 16:05:37 +00:00
- notpriv
codequality:
stage: security
image: docker:stable
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
paths: [codeclimate.json]
tags:
- docker
- priv
2017-09-13 15:47:30 +00:00
2016-06-03 14:46:10 +00:00
testLEGACY:
stage: test
script:
- npmci node install legacy
- npmci npm install
- npmci npm test
2017-04-30 16:22:34 +00:00
coverage: /\d+.?\d+?\%\s*coverage/
2016-06-03 14:46:10 +00:00
tags:
- docker
2018-05-03 16:05:37 +00:00
- notpriv
2016-06-07 07:02:58 +00:00
allow_failure: true
2016-06-03 14:46:10 +00:00
2016-05-26 19:18:14 +00:00
testLTS:
stage: test
script:
- npmci node install lts
- npmci npm install
- npmci npm test
2017-04-30 16:22:34 +00:00
coverage: /\d+.?\d+?\%\s*coverage/
2016-05-26 19:18:14 +00:00
tags:
- docker
2018-05-03 16:05:37 +00:00
- notpriv
2016-05-26 19:18:14 +00:00
testSTABLE:
stage: test
script:
- npmci node install stable
- npmci npm install
- npmci npm test
2017-04-30 16:22:34 +00:00
coverage: /\d+.?\d+?\%\s*coverage/
2016-05-26 19:18:14 +00:00
tags:
- docker
2018-05-03 16:05:37 +00:00
- notpriv
2016-05-26 19:18:14 +00:00
release:
stage: release
script:
2018-05-03 16:05:37 +00:00
- npmci node install stable
- npmci npm prepare
2018-05-03 11:30:01 +00:00
- npmci npm publish
2016-05-26 19:18:14 +00:00
only:
- tags
2016-05-26 19:18:14 +00:00
tags:
- docker
2018-05-03 16:05:37 +00:00
- notpriv
2016-06-09 22:55:29 +00:00
trigger:
stage: trigger
script:
- npmci trigger
2016-06-09 22:55:29 +00:00
only:
- tags
2016-06-09 22:55:29 +00:00
tags:
- docker
2018-05-03 16:05:37 +00:00
- notpriv
2016-08-30 21:18:04 +00:00
pages:
2017-04-01 18:58:23 +00:00
image: hosttoday/ht-docker-node:npmci
2016-08-30 21:18:04 +00:00
stage: pages
script:
2017-04-01 19:02:47 +00:00
- npmci command yarn global add npmpage
- npmci command npmpage
2017-03-31 15:02:19 +00:00
tags:
- docker
2018-05-03 16:05:37 +00:00
- notpriv
2017-04-30 16:22:34 +00:00
only:
- tags
2016-08-30 21:18:04 +00:00
artifacts:
expire_in: 1 week
paths:
2016-08-31 11:02:10 +00:00
- public