tricoteuses-legifrance/.gitlab-ci.yml

58 lines
950 B
YAML
Raw Normal View History

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:
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
- data_update
2022-11-15 15:31:20 +01:00
build:
stage: build
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
# 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
update_data:
stage: data_update
only:
- schedules
- web
trigger: tricoteuses/tricoteuses-legal-update