fmartingr
/
jeeves
Archived
1
0
Fork 0

gitlab -> sr.ht

This commit is contained in:
Felipe Martin 2020-01-05 12:16:00 +01:00
parent 4e929a8a0c
commit 9f7cbb0b57
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
5 changed files with 16 additions and 48 deletions

13
.builds/test.yml Normal file
View File

@ -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

View File

@ -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

View File

@ -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/).

View File

@ -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

View File

@ -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