diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e7193c69e93aa291ede0d406bf0749438a10a0ba..94e548323ffdb3baaf57e283375993ad7e469be1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,35 @@ image: python:3.7 stages: - - build_wheel - - build_doc + - build + - deploy -wheel: +before_script: + - pip install --upgrade pip + +build_wheel: + tags: + - wheel + stage: build + script: + - pip install --upgrade setuptools wheel + - python setup.py bdist_wheel + +build_docs: + tags: + - doc + stage: build + script: + - pip install -r requirements.txt + - cd docs + - make html + +deploy_wheel: tags: - wheel - stage: build_wheel + stage: deploy script: - - pip install --upgrade pip setuptools wheel + - pip install --upgrade setuptools wheel - python setup.py bdist_wheel - mv dist/ public @@ -20,12 +40,12 @@ wheel: only: - master -pages: +deploy_pages: tags: - doc - stage: build_doc + stage: deploy dependencies: - - wheel + - deploy_wheel script: - pip install -r requirements.txt - cd docs @@ -36,4 +56,4 @@ pages: paths: - public only: - - master + - master \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 8ddc8d9a8f879c3a05e9c6dfa824d597a93f000c..36a95090f99b0552a15c69ecdc4fc6df524aec5d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,4 @@ #https://git.rwth-aachen.de/kwh40/fml40-reference-implementation/-/jobs/artifacts/master/raw/public/fml40_reference_implementation-0.2.3-py3-none-any.whl?job=wheel -Sphinx==3.3.0 -sphinxcontrib-applehelp==1.0.2 -sphinxcontrib-devhelp==1.0.2 -sphinxcontrib-htmlhelp==1.0.3 -sphinxcontrib-jsmath==1.0.1 -sphinxcontrib-qthelp==1.0.3 -sphinxcontrib-serializinghtml==1.1.4 +Sphinx==5.0.2 recommonmark==0.6.0 -fml40-reference-implementation \ No newline at end of file +fml40-reference-implementation