Loading .gitlab-ci.yml +15 −6 Original line number Diff line number Diff line Loading @@ -15,22 +15,31 @@ # limitations under the License. ####################################################################################### stages: - build - deploy build-docs: image: python:3.8 variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" cache: paths: - .cache/pip stage: build script: - pip install tox - tox -e build deploy-job: stage: deploy image: python:3.8 variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" cache: paths: - .cache/pip script: - mkdir -p local - echo "USERNAME=$FTP_USERNAME" > local/.credentials - echo "PASSWORF=$FTP_PASSWORD" > local/.credentials - echo "PASSWORF=$FTP_PASSWORD" >> local/.credentials - pip install tox - tox -e build - tox -e publish # Only publish on protected branches. This avoids publish for merge requests rules: Loading tox.ini +3 −3 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ commands = rm -rf _build/html sphinx-multiversion . _build/html sh -c './fix_cross_references.sh' whitelist_externals = allowlist_externals = sh rm Loading @@ -65,7 +65,7 @@ commands = sphinx-multiversion . _build/html sphinx-autobuild . -b dirhtml -a _build/html --host 0.0.0.0 --port 8001 # sh -c './fix_cross_references.sh' whitelist_externals = allowlist_externals = sh rm Loading @@ -75,7 +75,7 @@ whitelist_externals = deps = {[testenv]deps} commands = sh -c './upload_doc.sh' whitelist_externals = allowlist_externals = sh rm Loading Loading
.gitlab-ci.yml +15 −6 Original line number Diff line number Diff line Loading @@ -15,22 +15,31 @@ # limitations under the License. ####################################################################################### stages: - build - deploy build-docs: image: python:3.8 variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" cache: paths: - .cache/pip stage: build script: - pip install tox - tox -e build deploy-job: stage: deploy image: python:3.8 variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" cache: paths: - .cache/pip script: - mkdir -p local - echo "USERNAME=$FTP_USERNAME" > local/.credentials - echo "PASSWORF=$FTP_PASSWORD" > local/.credentials - echo "PASSWORF=$FTP_PASSWORD" >> local/.credentials - pip install tox - tox -e build - tox -e publish # Only publish on protected branches. This avoids publish for merge requests rules: Loading
tox.ini +3 −3 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ commands = rm -rf _build/html sphinx-multiversion . _build/html sh -c './fix_cross_references.sh' whitelist_externals = allowlist_externals = sh rm Loading @@ -65,7 +65,7 @@ commands = sphinx-multiversion . _build/html sphinx-autobuild . -b dirhtml -a _build/html --host 0.0.0.0 --port 8001 # sh -c './fix_cross_references.sh' whitelist_externals = allowlist_externals = sh rm Loading @@ -75,7 +75,7 @@ whitelist_externals = deps = {[testenv]deps} commands = sh -c './upload_doc.sh' whitelist_externals = allowlist_externals = sh rm Loading