57 lines
950 B
YAML
57 lines
950 B
YAML
default:
|
|
image: node:lts
|
|
|
|
cache:
|
|
paths:
|
|
- node_modules/
|
|
|
|
variables:
|
|
DATASET:
|
|
description: "Select the dataset to import."
|
|
options:
|
|
- "dole"
|
|
- "jorf"
|
|
- "kali"
|
|
- "legi"
|
|
value: dole
|
|
## 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
|
|
# - test
|
|
- data_update
|
|
|
|
build:
|
|
stage: build
|
|
except:
|
|
- schedules
|
|
- web
|
|
before_script:
|
|
- npm ci
|
|
script:
|
|
- rm -f .env
|
|
- ln -s example.env .env
|
|
- npm run build
|
|
|
|
# test:
|
|
# stage: test
|
|
# except:
|
|
# - schedules
|
|
# - web
|
|
# before_script:
|
|
# - npm ci
|
|
# script:
|
|
# - rm -f .env
|
|
# - ln -s example.env .env
|
|
# - npm run test
|
|
|
|
update_data:
|
|
stage: data_update
|
|
only:
|
|
- schedules
|
|
- web
|
|
trigger: tricoteuses/tricoteuses-legal-update
|