From 9f7cbb0b57033d376daf181494747e60453bdbe9 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Sun, 5 Jan 2020 12:16:00 +0100 Subject: [PATCH] gitlab -> sr.ht --- .builds/test.yml | 13 +++++++++++++ .gitlab-ci.yml | 45 ------------------------------------------- README.md | 2 +- docs/contributing.rst | 2 +- docs/installation.rst | 2 +- 5 files changed, 16 insertions(+), 48 deletions(-) create mode 100644 .builds/test.yml delete mode 100644 .gitlab-ci.yml diff --git a/.builds/test.yml b/.builds/test.yml new file mode 100644 index 0000000..1705f83 --- /dev/null +++ b/.builds/test.yml @@ -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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 63c7edf..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -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 diff --git a/README.md b/README.md index 00cad4a..a1177c7 100644 --- a/README.md +++ b/README.md @@ -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/). diff --git a/docs/contributing.rst b/docs/contributing.rst index bc7e9a7..92fb264 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -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 diff --git a/docs/installation.rst b/docs/installation.rst index e762e0a..3048a2b 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -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