2022-11-15 15:31:20 +01:00
|
|
|
default:
|
|
|
|
image: node:lts
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
|
|
|
|
variables:
|
2022-11-15 15:44:38 +01:00
|
|
|
DATASET:
|
2023-02-23 16:51:15 +01:00
|
|
|
description: "Select the dataset to import."
|
|
|
|
options:
|
|
|
|
- "dole"
|
|
|
|
- "jorf"
|
|
|
|
- "kali"
|
|
|
|
- "legi"
|
2022-11-15 15:44:38 +01:00
|
|
|
value: dole
|
2022-11-15 15:31:20 +01:00
|
|
|
## Ensure that all the Git tags are retrieved.
|
|
|
|
## https://docs.gitlab.com/ee/user/project/pipelines/settings.html#git-shallow-clone
|
|
|
|
GIT_DEPTH: 0
|
|
|
|
## Needed for storing locale dates
|
|
|
|
TZ: Europe/Paris
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
2022-11-15 15:36:42 +01:00
|
|
|
# - test
|
2023-02-24 06:34:47 +01:00
|
|
|
- data_update
|
2022-11-15 15:31:20 +01:00
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
2022-11-15 15:51:56 +01:00
|
|
|
except:
|
|
|
|
- schedules
|
|
|
|
- web
|
2022-11-15 15:31:20 +01:00
|
|
|
before_script:
|
|
|
|
- npm ci
|
|
|
|
script:
|
2022-11-15 15:34:48 +01:00
|
|
|
- rm -f .env
|
|
|
|
- ln -s example.env .env
|
2022-11-15 15:31:20 +01:00
|
|
|
- npm run build
|
|
|
|
|
2022-11-15 15:36:42 +01:00
|
|
|
# test:
|
|
|
|
# stage: test
|
2022-11-15 15:51:56 +01:00
|
|
|
# except:
|
|
|
|
# - schedules
|
|
|
|
# - web
|
2022-11-15 15:36:42 +01:00
|
|
|
# before_script:
|
|
|
|
# - npm ci
|
|
|
|
# script:
|
|
|
|
# - rm -f .env
|
|
|
|
# - ln -s example.env .env
|
|
|
|
# - npm run test
|
2022-11-15 15:31:20 +01:00
|
|
|
|
2023-02-24 06:34:47 +01:00
|
|
|
update_data:
|
|
|
|
stage: data_update
|
2023-02-23 16:51:15 +01:00
|
|
|
only:
|
|
|
|
- schedules
|
|
|
|
- web
|
|
|
|
trigger: tricoteuses/tricoteuses-legal-update
|