diff options
author | Jürg Billeter <j@bitron.ch> | 2019-03-25 13:28:59 +0000 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-03-25 13:28:59 +0000 |
commit | 38d4c2ce4b182be71384d2f9f9a3d6374075a98c (patch) | |
tree | 5a5f3be665b2640c43ba67acc56b3366bda5953d /.gitlab-ci.yml | |
parent | 753a14ccc5832b5b97cd54370d6361cad6e62f7a (diff) | |
parent | b626fa623367bd3f62f38c5cf0c8b8b2eaf222a4 (diff) | |
download | buildstream-38d4c2ce4b182be71384d2f9f9a3d6374075a98c.tar.gz |
Merge branch 'mablanch/629-remote-execution-test' into 'master'
Add remote execution tests to the CI pipeline
See merge request BuildStream/buildstream!1239
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 210de8df4..2d3a24700 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ cache: stages: - test - post + - publish variables: PYTEST_ADDOPTS: "--color=yes" @@ -138,6 +139,29 @@ tests-fedora-update-deps: - su buildstream -c "${TEST_COMMAND}" +tests-remote-execution: + allow_failure: true + image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:29-master-47052095 + <<: *tests + before_script: + - dnf install -y docker docker-compose + - docker-compose --file ${COMPOSE_MANIFEST} up --detach + after_script: + - docker-compose --file ${COMPOSE_MANIFEST} stop + - docker-compose --file ${COMPOSE_MANIFEST} logs + - docker-compose --file ${COMPOSE_MANIFEST} down + services: + - docker:stable-dind + variables: + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + COMPOSE_MANIFEST: .gitlab-ci/buildgrid-compose.yml + ARTIFACT_CACHE_SERVICE: http://docker:50052 + REMOTE_EXECUTION_SERVICE: http://docker:50051 + SOURCE_CACHE_SERVICE: http://docker:50052 + PYTEST_ARGS: "--color=yes --remote-execution" + + # Lint separately from testing lint: stage: test @@ -308,6 +332,7 @@ coverage: - tests-fedora-29 - tests-fedora-missing-deps - tests-fedora-update-deps + - tests-remote-execution - tests-ubuntu-18.04 - tests-unix except: @@ -320,17 +345,21 @@ coverage: # Deploy, only for merges which land on master branch. # pages: - stage: post + stage: publish dependencies: + - coverage - docs variables: ACME_DIR: public/.well-known/acme-challenge + COVERAGE_DIR: public/coverage script: - mkdir -p ${ACME_DIR} # Required to finish the creation of the Let's Encrypt certificate, # which allows using https://docs.buildstream.build/ for accessing # the documentation. - echo ${ACME_CHALLENGE} > ${ACME_DIR}/$(echo ${ACME_CHALLENGE} | cut -c1-43) + - mkdir -p ${COVERAGE_DIR} + - cp -a ./coverage-report/ ${COVERAGE_DIR} artifacts: paths: - public/ |