Loading .gitlab-ci.yml +11 −0 Original line number Diff line number Diff line Loading @@ -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: Loading @@ -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 Loading project-automation/pages-hugo.yml +5 −4 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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" tests/mockup_projects/pages/config.yaml 0 → 100644 +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 Loading
.gitlab-ci.yml +11 −0 Original line number Diff line number Diff line Loading @@ -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: Loading @@ -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 Loading
project-automation/pages-hugo.yml +5 −4 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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"
tests/mockup_projects/pages/config.yaml 0 → 100644 +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