Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
aba2f576
Commit
aba2f576
authored
Oct 02, 2022
by
Bjorn Neergaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: simplify Cirrus testing
parent
a7e182f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
.cirrus.yml
+11
-14
No files found.
.cirrus.yml
View file @
aba2f576
...
@@ -16,21 +16,18 @@ test_task:
...
@@ -16,21 +16,18 @@ test_task:
-
PYTHON
:
python3.8
-
PYTHON
:
python3.8
-
PYTHON
:
python3.9
-
PYTHON
:
python3.9
-
PYTHON
:
python3.10
-
PYTHON
:
python3.10
pkg_script
:
install_prereqs_script
:
-
PYPACKAGE=$(printf '%s' $PYTHON | tr -d '.')
-
V=$(printf '%s' $PYTHON | tr -d '.[:alpha:]')
-
SQLPACKAGE=$(printf '%s-sqlite3' $PYPACKAGE | sed 's/thon//')
-
pkg install -y python${V} py${V}-sqlite3
-
pkg install -y git-lite curl $PYPACKAGE $SQLPACKAGE
install_poetry_script
:
pip_script
:
-
POETRY_HOME=/opt/poetry
-
$PYTHON -m ensurepip
-
$PYTHON -m venv $POETRY_HOME
-
$PYTHON -m pip --disable-pip-version-check install -U pip
-
$POETRY_HOME/bin/pip install --upgrade pip setuptools wheel
env_script
:
-
$POETRY_HOME/bin/pip install poetry
-
echo "PATH=/.local/bin:${PATH}" >> $CIRRUS_ENV
-
echo "PATH=$POETRY_HOME/bin:$PATH" >> $CIRRUS_ENV
poetry_script
:
install_and_test_script
:
-
curl -sL https://install.python-poetry.org | $PYTHON - -y
-
poetry config virtualenvs.in-project
true
test_script
:
-
poetry install
-
poetry install
-
poetry run pytest -
n auto -q --junitxml=junit.xml tests
-
poetry run pytest -
-junitxml=junit.xml -v
on_failure
:
on_failure
:
annotate_failure_artifacts
:
annotate_failure_artifacts
:
path
:
junit.xml
path
:
junit.xml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment