Skip to content
Snippets Groups Projects
Commit f30a65f8 authored by benoit-cty's avatar benoit-cty
Browse files

Clean CI file

parent ab967f01
Branches
No related tags found
1 merge request!112Fix build conda and PyPi
Pipeline #12259 passed
...@@ -33,14 +33,14 @@ cache: ...@@ -33,14 +33,14 @@ cache:
before_script: before_script:
# git is needed for pre-commit # git is needed for pre-commit
- apt update && apt install -y git make - apt update && apt install -y git make
- rm -rf openfisca-france-data && git clone --branch master https://project_14_bot:${GITLAB_TOKEN_FRANCE_DATA}@git.leximpact.dev/benjello/openfisca-france-data.git # - rm -rf openfisca-france-data && git clone --branch master https://project_14_bot:${GITLAB_TOKEN_FRANCE_DATA}@git.leximpact.dev/benjello/openfisca-france-data.git
- pip install --find-links=${PIP_DOWNLOAD_DIR} poetry # STEP 2 - pip install --find-links=${PIP_DOWNLOAD_DIR} poetry # STEP 2
- cp deploy/.env-ci notebooks/.env - cp deploy/.env-ci notebooks/.env
- cp deploy/.env-ci leximpact_prepare_data/.env - cp deploy/.env-ci leximpact_prepare_data/.env
- cp deploy/.env-ci .env - cp deploy/.env-ci .env
# Hack for simu-etat # Hack for simu-etat
- mkdir -p /builds/leximpact/leximpact-pre # - mkdir -p /builds/leximpact/leximpact-pre
- cp deploy/.env-ci /builds/leximpact/leximpact-pre/.env # - cp deploy/.env-ci /builds/leximpact/leximpact-pre/.env
#- git remote set-url origin https://${CI_REGISTRY_USER}:${API_TOKEN}@${CI_REPOSITORY_URL#*@} #- git remote set-url origin https://${CI_REGISTRY_USER}:${API_TOKEN}@${CI_REPOSITORY_URL#*@}
#- git remote -v #- git remote -v
...@@ -50,7 +50,6 @@ install: ...@@ -50,7 +50,6 @@ install:
# Allow caching by only downloading first: # Allow caching by only downloading first:
- pip download --dest=${PIP_DOWNLOAD_DIR} poetry # STEP 1 - pip download --dest=${PIP_DOWNLOAD_DIR} poetry # STEP 1
- poetry config virtualenvs.in-project true - poetry config virtualenvs.in-project true
- poetry install --no-root
- poetry install --no-root --extras "pipeline" - poetry install --no-root --extras "pipeline"
- poetry run pre-commit install --install-hooks - poetry run pre-commit install --install-hooks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment