diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-07-23 13:11:49 +0100 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-09-25 16:18:53 +0100 |
commit | 7dbbcedfbe43724c7e05d4f8796e44b5cd508115 (patch) | |
tree | f265bf20fa9b495d552fdb8a90965bb5b4eafdcc | |
parent | 8cea7b17a773230e37a84b1c0fccadb23f24a108 (diff) | |
download | buildstream-tiagogomes/issue-514.tar.gz |
WIP Add end-to-end teststiagogomes/issue-514
-rw-r--r-- | .gitlab-ci.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d57d33f83..6f16deb19 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -79,6 +79,8 @@ source_dist: - cd ../.. - mkdir -p coverage-linux/ - cp dist/buildstream/.coverage.* coverage-linux/coverage."${CI_JOB_NAME}" + except: + - schedules artifacts: paths: - coverage-linux/ @@ -127,6 +129,8 @@ tests-unix: - cd ../.. - mkdir -p coverage-unix/ - cp dist/buildstream/.coverage.* coverage-unix/coverage.unix + except: + - schedules artifacts: paths: - coverage-unix/ @@ -148,10 +152,42 @@ docs: - make BST_FORCE_SESSION_REBUILD=1 -C doc - cd ../.. - mv dist/buildstream/doc/build/html public + except: + - schedules artifacts: paths: - public/ +.system-tests: &system-tests-template + stage: test + variables: + XDG_CACHE_HOME: /cache + 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 + expected_cache_key: faaf3d3 + 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} + tags: + - system-tests + #when: + #- schedules + +system-tests: + <<: *system-tests-template + script: + - make -C freedesktop-sdk + +system-tests-no-cache: + <<: *system-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 + # Check code quality with gitlab's built-in feature. # @@ -170,6 +206,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] @@ -199,6 +237,8 @@ analysis: radon raw -s -j buildstream > analysis/raw.json radon raw -s buildstream + except: + - schedules artifacts: paths: - analysis/ @@ -224,6 +264,8 @@ coverage: - tests-fedora-28 - tests-unix - source_dist + except: + - schedules # Deploy, only for merges which land on master branch. # @@ -248,3 +290,5 @@ pages: # See https://gitlab.com/gitlab-org/gitlab-ce/issues/35141 # - master + except: + - schedules |