gitlab -> sr.ht
This commit is contained in:
parent
4e929a8a0c
commit
9f7cbb0b57
|
@ -0,0 +1,13 @@
|
|||
image: archlinux
|
||||
packages:
|
||||
- python-poetry
|
||||
sources:
|
||||
- https://git.sr.ht/~fmartingr/jeeves
|
||||
tasks:
|
||||
- setup: |
|
||||
python -V
|
||||
cd jeeves
|
||||
poetry install
|
||||
- test: |
|
||||
cd jeeves
|
||||
poetry run pytest . --cov=jeeves.core --cov-report html --cov-report term
|
|
@ -1,45 +0,0 @@
|
|||
image: python:3
|
||||
|
||||
stages:
|
||||
- test
|
||||
- deploy
|
||||
|
||||
# Change pip's cache directory to be inside the project directory since we can
|
||||
# only cache local items.
|
||||
variables:
|
||||
POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry"
|
||||
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
||||
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
- .cache/pip
|
||||
- .cache/poetry
|
||||
|
||||
before_script:
|
||||
- python -V
|
||||
- pip install poetry
|
||||
- "poetry config settings.virtualenvs.path ${POETRY_CACHE_DIR}"
|
||||
- poetry install
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- poetry run pytest . --cov=jeeves.core --cov-report html --cov-report term
|
||||
artifacts:
|
||||
paths:
|
||||
- htmlcov
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- test
|
||||
script:
|
||||
- poetry run docs/build.sh
|
||||
- mv docs/_build/html/ public
|
||||
- mv htmlcov public/htmlcov
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- master
|
|
@ -7,4 +7,4 @@ Jeeves will take care of your boring tasks so you don't have to worry.
|
|||
## Documentation
|
||||
|
||||
Documentation is accesible and readable in the [docs](./docs) folder and
|
||||
can be accesed [here](https://fmartingr.gitlab.io/jeeves/).
|
||||
can be accesed [here](https://jeeves.fmartingr.dev/).
|
||||
|
|
|
@ -9,7 +9,7 @@ source code and be able to run it in your local machine.
|
|||
|
||||
.. code-block:: bash
|
||||
|
||||
git clone git@gitlab.com:fmartingr/jeeves.git
|
||||
git clone git@git.sr.ht:~fmartingr/jeeves
|
||||
|
||||
|
||||
In this project we use Poetry_ to manage
|
||||
|
|
|
@ -9,7 +9,7 @@ need to clone the repository or download a release manually.
|
|||
|
||||
.. code-block::
|
||||
|
||||
git clone git@gitlab.com:fmartingr/jeeves.git
|
||||
git clone git@git.sr.ht:~fmartingr/jeeves
|
||||
cd jeeves
|
||||
poetry install
|
||||
poetry run jeeves --help
|
||||
|
|
Reference in New Issue