https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 734261b3ee2ff9a172b90739f1cf7e2ae9823c25 authored by rinkk on 11 February 2021, 14:52:44 UTC
[utils] added voting mechanic to bridge small discontinuities such as horizon-shifts due to faults, adjusted test to reflect this change
Tip revision: 734261b
build-docs.yml
build docs:
  stage: build
  tags: [ docker ]
  image:
    name: $CONTAINER_GCC_IMAGE
  dependencies: [meta, meta_container]
  retry:
    max: 2
    when: runner_system_failure
  before_script:
    # HACK to easier linking to the generated pages
    - echo '<meta http-equiv="REFRESH" content="0;URL=build/docs/index.html">' >> Doxygen.html
    - mkdir -p build
    - cd build
  script:
    - cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_USE_CONAN=OFF -DOGS_BUILD_PROCESSES=GroundwaterFlow
    - cmake --build . --target doc > >(tee make-docs.output)
  artifacts:
    expose_as: 'Doxygen'
    paths:
      - Doxygen.html
      - build/docs
    expire_in: 1 week

check docs links:
  stage: check
  tags: [ docker ]
  allow_failure: true
  image: $WEB_IMAGE
  dependencies: [meta_container, "build docs"]
  extends:
      - .rules-master-manual
  script:
    - cd build
    - >
      urlchecker check --retry-count 5 --file-types .html
      --white-listed-patterns \&lt\;,\&quot,www.w3.org,www.doxygen.org,cdnjs.cloudflare.com,docs.opengeosys.org/docs/tools
      --white-listed-urls http://www.opengeosys.org/project/license,http://www.opengeosys.org,http://www.opengeosys.org\&quot,http://www.trolltech.com/products/qt/licensing.html,http://www.trolltech.com/products/qt/opensource.html
      --white-listed-files project_file_doc_qa.html,ogs_file_
      docs

deploy doxygen:
  stage: package
  tags: [ docker ]
  image: $WEB_IMAGE
  rules:
    - if: '$CI_COMMIT_BRANCH == "master"'
  dependencies: [meta_container, "build docs"]
  variables:
    GIT_STRATEGY: none
  script:
    - netlify deploy --prod --dir=build/docs --site=$DOXYGEN_NETLIFY_SITE_ID
back to top