2024-01-19 19:06:25 +01:00
|
|
|
image: registry.nic.cz/turris/reforis/reforis/reforis-image
|
2019-08-27 16:10:14 +02:00
|
|
|
|
|
|
|
stages:
|
2020-08-18 15:39:00 +02:00
|
|
|
- test
|
|
|
|
- build
|
|
|
|
- publish
|
2019-08-27 16:10:14 +02:00
|
|
|
|
|
|
|
before_script:
|
2024-01-19 19:06:25 +01:00
|
|
|
- apt-get update && apt-get install -y make
|
2020-08-18 15:39:00 +02:00
|
|
|
- npm install
|
2019-08-27 16:10:14 +02:00
|
|
|
|
|
|
|
test:
|
2020-08-18 15:39:00 +02:00
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- make test
|
2019-08-27 16:10:14 +02:00
|
|
|
|
|
|
|
lint:
|
2020-08-18 15:39:00 +02:00
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- make lint
|
2019-08-27 16:10:14 +02:00
|
|
|
|
|
|
|
build:
|
2020-08-18 15:39:00 +02:00
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- make pack
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- dist/foris-*.tgz
|
2019-10-07 16:43:57 +02:00
|
|
|
|
|
|
|
publish_beta:
|
2020-08-18 15:39:00 +02:00
|
|
|
stage: publish
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- dev
|
|
|
|
script:
|
|
|
|
- make publish-beta
|
2019-10-07 16:43:57 +02:00
|
|
|
|
|
|
|
publish_latest:
|
2020-08-18 15:39:00 +02:00
|
|
|
stage: publish
|
|
|
|
only:
|
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
script:
|
|
|
|
- make publish-latest
|