Add .env to CI

This commit is contained in:
Emmanuel 2022-11-15 15:34:48 +01:00
parent 1f9b12e9d6
commit e6dd3a06e1

View file

@ -29,6 +29,8 @@ build:
before_script: before_script:
- npm ci - npm ci
script: script:
- rm -f .env
- ln -s example.env .env
- npm run build - npm run build
test: test:
@ -36,6 +38,8 @@ test:
before_script: before_script:
- npm ci - npm ci
script: script:
- rm -f .env
- ln -s example.env .env
- npm run test - npm run test
download: download:
@ -73,6 +77,8 @@ download:
- npm ci - npm ci
script: script:
- rm -f .env
- ln -s example.env .env
- mkdir -p ../dila-data/ - mkdir -p ../dila-data/
- git clone git@git.en-root.org:tricoteuses/data/dila/${DATASET}.git ../dila-data/${DATASET} - git clone git@git.en-root.org:tricoteuses/data/dila/${DATASET}.git ../dila-data/${DATASET}
- npx tsx src/scripts/download_dila_dataset.ts ${DATASET} --push - npx tsx src/scripts/download_dila_dataset.ts ${DATASET} --push