Commit 1f2c9b3b authored by Mark Beierl's avatar Mark Beierl
Browse files

Fixing automatic build

parent 34210be7
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
@@ -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:
+3 −3
Original line number Diff line number Diff line
@@ -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

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

@@ -75,7 +75,7 @@ whitelist_externals =
deps =  {[testenv]deps}
commands =
        sh -c './upload_doc.sh'
whitelist_externals =
allowlist_externals =
        sh
        rm