Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
leximpact-prepare-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
Budget
leximpact-prepare-data
Commits
e91bac38
Commit
e91bac38
authored
1 year ago
by
benoit-cty
Browse files
Options
Downloads
Patches
Plain Diff
Clean gitlab-ci
parent
a74ae5a5
No related branches found
No related tags found
1 merge request
!112
Fix build conda and PyPi
Pipeline
#12274
passed
1 year ago
Stage: init
Stage: check
Stage: test
Stage: deploy-doc
Stage: pre-publish
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-31
1 addition, 31 deletions
.gitlab-ci.yml
with
1 addition
and
31 deletions
.gitlab-ci.yml
+
1
−
31
View file @
e91bac38
...
...
@@ -33,16 +33,11 @@ cache:
before_script
:
# git is needed for pre-commit
-
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
-
pip install --find-links=${PIP_DOWNLOAD_DIR} poetry
# STEP 2
-
cp deploy/.env-ci notebooks/.env
-
cp deploy/.env-ci leximpact_prepare_data/.env
-
cp deploy/.env-ci .env
# Hack for simu-etat
# - mkdir -p /builds/leximpact/leximpact-pre
# - 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 -v
install
:
stage
:
init
...
...
@@ -56,7 +51,6 @@ install:
check-style
:
stage
:
check
script
:
#- poetry run pre-commit install --install-hooks
-
poetry run pre-commit run --all-files --show-diff-on-failure
run-notebooks
:
...
...
@@ -71,24 +65,6 @@ run-notebooks:
paths
:
-
./papermill
# Not used yet
.git-bump-script
:
&git-bump-script
|
git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
make bump
lines=$(git status -s | wc -l)
if [ $lines -gt 0 ];then
echo "gitlabci: Committing changes ----------"
git config --global user.name "$GIT_AUTHOR_NAME"
git config --global user.email "$GIT_EMAIL"
# git add --ignore-removal to avoid adding deletation
git add pyproject.toml leximpact_socio_fisca_simu_etat/__init__.py
git commit -m "Bump version"
# Create the token by going to {PROJECT} / Settings / Access Tokens. Then create one with read/write repository.
git push -o ci.skip "https://${CI_REGISTRY_USER}:${API_TOKEN}@${CI_REPOSITORY_URL#*@}"
else
echo "gitlabci: no change, nothing to commit ----------"
fi
.prepare-deploy
:
&prepare-deploy
|
echo "gitlabci: Set openfisca-survey-manager config"
mkdir -p /root/.config/openfisca-survey-manager
...
...
@@ -128,12 +104,6 @@ run-notebooks:
#- git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
-
git config --global user.name "$GIT_AUTHOR_NAME"
-
git config --global user.email "$GIT_EMAIL"
#- git fetch origin documentations-html
#- git rebase --quit || true
#- git switch documentations-html --force
#- git merge -X theirs "origin/$CI_COMMIT_REF_NAME" || true
#- git tag "$CI_COMMIT_SHA"
#- git reset "origin/$CI_COMMIT_REF_NAME" --hard
-
git checkout -b documentations-html-$CI_COMMIT_SHA
# On génère la doc
-
*prepare-deploy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment