From 2dd61fbfb0f1a8bdce4389925921bcd789a8f06e Mon Sep 17 00:00:00 2001 From: Patrick Godwin <patrick.godwin@ligo.org> Date: Thu, 18 Mar 2021 13:32:07 -0700 Subject: [PATCH] .gitlab-ci.yml: switch pages stage to use conda container --- .gitlab-ci.yml | 70 ++++++++++++++++++++++++-------------------------- 1 file changed, 34 insertions(+), 36 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e88a6321ac..2a3f63ff13 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,6 @@ stages: - docker - docker-latest - nightly-pages - - verify # conda dev container .dependencies: &dependencies @@ -267,41 +266,6 @@ test:offline: - pushes allow_failure: true -pages: - image: containers.ligo.org/alexander.pace/gstlal-dev/gstlal-dev:el7 - stage: nightly-pages - script: - # Install RPMs and set up the test environment: - - if [ -d rpmbuild ]; then yum -y install rpmbuild/RPMS/x86_64/*.rpm; fi - - gst-inspect-1.0 - - export GSTLAL_FIR_WHITEN=0 - - - yum -y install python3-pip texlive* graphviz python36-matplotlib tzdata - - python3 -m pip install setuptools sphinx==1.7 sphinx_rtd_theme - - python3 -m pip install -U pytz - - mkdir -p public/ - - cd doc; make html - - cd ..; cp -rf doc/_build/* public/ - dependencies: - - level0:rpm:gstlal - - level1:rpm:gstlal-ugly - #- level2:rpm:gstlal-calibration - - level2:rpm:gstlal-inspiral - - level2:rpm:gstlal-burst - - test:gstlal - - test:gstlal-inspiral - - test:gstlal-burst - artifacts: - paths: - - public - only: - - master@lscsoft/gstlal - - schedules - except: - - web - - pushes - allow_failure: true - docker:el7: stage: docker before_script: [] @@ -439,3 +403,37 @@ latest_image: - docker push $DOCKER_LATEST retry: max: 2 + +pages: + image: $CI_REGISTRY_IMAGE/conda:$CI_COMMIT_REF_NAME + stage: nightly-pages + before_script: [] + script: + # install tex dependencies + - apt-get update -y + - apt-get install -y dvipng texlive-latex-base texlive-latex-extra + + # install doc dependencies + - conda install -y -c conda-forge 'sphinx < 3.0' graphviz sphinx_rtd_theme + + # build docs + - mkdir -p public/ + - cd doc; make html + + # save doc artifacts + - cd ..; cp -rf doc/_build/* public/ + needs: + - docker:conda + artifacts: + paths: + - public + only: + - schedules + - pushes + #only: + # - master@lscsoft/gstlal + # - schedules + #except: + # - web + # - pushes + #allow_failure: true -- GitLab