Commit bd0c5961 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

Merge branch 'pages-test' into 'beta'

test: pages

See merge request just-ci/templates!25
parents 0ca5817a c6c4e830
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ include:
  - local: pipelines/workflow.yml
  - local: yaml/yamllint.yml
  - local: project-automation/pipeline-scheduler.yml
  - local: project-automation/pages-hugo.yml

gitlab:recommended:
  variables:
@@ -24,6 +25,16 @@ badge:test:
  rules:
    - if: $GL_TOKEN
      when: never
    - when: always

pages:
  stage: test
  before_script:
    - cd tests/mockup_projects/pages
    - git clone https://github.com/alexandrevicenzi/soho.git themes/soho
    - mkdir content
    - cp ${CI_PROJECT_DIR}/README.md content/index.md
  needs: []

# child pipeline to unit tests all our jobs

+5 −4
Original line number Diff line number Diff line
@@ -20,6 +20,10 @@ pages:
        hugo ${EXTRA_ARGS}
      fi
    - gzip -kr public
    - |
      if [ ! "${CI_PROJECT_DIR}" = "${PWD}" ]; then
        mv public "${CI_PROJECT_DIR}/public"
      fi
  artifacts:
    paths:
      - public
@@ -30,11 +34,8 @@ pages:test:
  extends: pages
  stage: test
  after_script:
    - mv public test
    - echo "[!] When browing the test job artifacts you may not see the full final result when opening an HTML file, as the built site may reference absolute or canonified URLs."
  artifacts:
    paths:
      - test
    when: always
  rules:
    - if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
    - if: "$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH"
+4 −0
Original line number Diff line number Diff line
---
baseurl: https://just-ci.gitlab.tsn.tno.nl/templates/
theme: soho
title: Just CI templates