From 56233ffd7a1b9b3b88f762929213e1c79152f5cf Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Mon, 23 Jul 2018 13:11:49 +0100 Subject: CI: test building freedesktop-sdk overnight Closes #514. --- .gitlab-ci.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f8c1f5ac9..69bce6ef4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -84,6 +84,8 @@ source_dist: - cd ../.. - mkdir -p coverage-linux/ - cp dist/buildstream/.coverage.* coverage-linux/coverage."${CI_JOB_NAME}" + except: + - schedules artifacts: paths: - coverage-linux/ @@ -132,6 +134,8 @@ tests-unix: - cd ../.. - mkdir -p coverage-unix/ - cp dist/buildstream/.coverage.* coverage-unix/coverage.unix + except: + - schedules artifacts: paths: - coverage-unix/ @@ -153,10 +157,41 @@ docs: - make BST_FORCE_SESSION_REBUILD=1 -C doc - cd ../.. - mv dist/buildstream/doc/build/html public + except: + - schedules artifacts: paths: - public/ +.overnight-tests: &overnight-tests-template + stage: test + variables: + bst_ext_url: git+https://gitlab.com/BuildStream/bst-external.git + bst_ext_ref: 1d6ab71151b93c8cbc0a91a36ffe9270f3b835f1 # 0.5.1 + fd_sdk_ref: 718ea88089644a1ea5b488de0b90c2c565cb75f8 # 18.08.12 + before_script: + - (cd dist && ./unpack.sh && cd buildstream && pip3 install .) + - pip3 install --user -e ${bst_ext_url}@${bst_ext_ref}#egg=bst_ext + - git clone https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git + - git -C freedesktop-sdk checkout ${fd_sdk_ref} + only: + - schedules + +overnight-tests: + <<: *overnight-tests-template + script: + - make -C freedesktop-sdk + tags: + - overnight-tests + +overnight-tests-no-cache: + <<: *overnight-tests-template + script: + - sed -i '/artifacts:/,+1 d' freedesktop-sdk/bootstrap/project.conf + - sed -i '/artifacts:/,+1 d' freedesktop-sdk/project.conf + - make -C freedesktop-sdk + tags: + - overnight-tests # Check code quality with gitlab's built-in feature. # @@ -175,6 +210,8 @@ code_quality: --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code + except: + - schedules artifacts: paths: [gl-code-quality-report.json] @@ -204,6 +241,8 @@ analysis: radon raw -s -j buildstream > analysis/raw.json radon raw -s buildstream + except: + - schedules artifacts: paths: - analysis/ @@ -229,6 +268,8 @@ coverage: - tests-fedora-28 - tests-unix - source_dist + except: + - schedules # Deploy, only for merges which land on master branch. # @@ -253,3 +294,5 @@ pages: # See https://gitlab.com/gitlab-org/gitlab-ce/issues/35141 # - master + except: + - schedules -- cgit v1.2.1