1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-12-26 00:21:36 +01:00
foris-js/.gitlab-ci.yml

45 lines
501 B
YAML
Raw Normal View History

2019-08-27 16:10:14 +02:00
image: node:8-alpine
stages:
- test
- build
2019-10-07 16:43:57 +02:00
- publish
2019-08-27 16:10:14 +02:00
before_script:
2019-11-01 10:28:28 +01:00
- apk add make
2019-08-27 16:10:14 +02:00
- npm install
test:
stage: test
script:
2019-11-01 10:28:28 +01:00
- make test
2019-08-27 16:10:14 +02:00
lint:
stage: test
script:
2019-11-01 10:28:28 +01:00
- make lint
2019-08-27 16:10:14 +02:00
build:
stage: build
script:
2019-11-01 10:28:28 +01:00
- make pack
2019-08-27 16:10:14 +02:00
artifacts:
paths:
2019-11-01 10:28:28 +01:00
- dist/foris-*.tgz
2019-10-07 16:43:57 +02:00
publish_beta:
stage: publish
only:
refs:
- dev
script:
2019-11-01 10:28:28 +01:00
- make publish-beta
2019-10-07 16:43:57 +02:00
publish_latest:
stage: publish
only:
refs:
- master
script:
2019-11-01 10:28:28 +01:00
- make publish-latest