Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
09562d41
Commit
09562d41
authored
5 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[mod]
#66
: Update CI to install dependencies with Poetry
- Use poetry build, and poetry publish
parent
7133600b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-12
7 additions, 12 deletions
.gitlab-ci.yml
with
7 additions
and
12 deletions
.gitlab-ci.yml
+
7
−
12
View file @
09562d41
...
...
@@ -48,7 +48,6 @@ format:
stage
:
format
image
:
$DOCKER_IMAGE/3.8:latest
script
:
-
pip install -r requirements_dev.txt
-
make check-format
test
:
...
...
@@ -56,7 +55,7 @@ test:
-
.changes
stage
:
test
script
:
-
p
ip
install -
r requirements.txt
-
p
oetry
install -
-no-dev
-
make tests
check
:
...
...
@@ -64,7 +63,7 @@ check:
-
.changes
stage
:
test
script
:
-
p
ip
install
-r requirements_dev.txt
-
p
oetry
install
-
make mypy
-
make pylint
...
...
@@ -73,8 +72,7 @@ build:
-
.changes
stage
:
build
script
:
-
pip install -r requirements_deploy.txt
-
make build
-
poetry build
release
:
extends
:
...
...
@@ -82,9 +80,7 @@ release:
stage
:
release
when
:
manual
script
:
-
pip install -r requirements_deploy.txt
-
make build
-
make deploy PYPI_LOGIN=${PYPI_LOGIN} PYPI_PASSWORD=${PYPI_PASSWORD}
-
poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
only
:
-
tags
-
master
...
...
@@ -93,9 +89,8 @@ release_test:
stage
:
release
when
:
manual
script
:
-
pip install -r requirements_deploy.txt
-
make build
-
make deploy_test PYPI_TEST_LOGIN=${PYPI_TEST_LOGIN} PYPI_TEST_PASSWORD=${PYPI_TEST_PASSWORD}
-
poetry config repositories.pypi_test https://test.pypi.org/legacy/
-
poetry publish --build --username $PYPI_TEST_LOGIN --password $PYPI_TEST_PASSWORD --repository pypi_test
pages
:
stage
:
publish_doc
...
...
@@ -104,7 +99,7 @@ pages:
-
tags
-
master
script
:
-
p
ip
install -
r requirements_dev.txt
-
p
oetry
install -
E sphinx
-
make docs
-
mv docs/_build/html public
-
ls public
...
...
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