From ab7e54122967a1fb0e8ef51eb51930e01f48066f Mon Sep 17 00:00:00 2001 From: Tristan Maat Date: Mon, 25 Nov 2019 17:10:26 +0000 Subject: WIP: Run doc generation in CI, because it will run nowhere I can provide --- .gitlab-ci.yml | 790 ++++++++++++------------ doc/source/sessions-stored/junctions-build.html | 150 ----- tox.ini | 2 +- 3 files changed, 400 insertions(+), 542 deletions(-) delete mode 100644 doc/source/sessions-stored/junctions-build.html diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1458d4dd5..31b15a5a1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,398 +57,406 @@ variables: paths: - .coverage-reports -tests-debian-9: +test-stuff: image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-debian:9-master-93453213 - <<: *tests - -tests-debian-10: - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-debian:10-master-97554983 - <<: *tests - -tests-fedora-30: - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:30-master-93453213 - <<: *tests - -tests-fedora-31: - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 - <<: *tests - -tests-ubuntu-18.04: - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-ubuntu:18.04-master-93453213 - <<: *tests - -tests-centos-7.6: - <<: *tests - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-centos:7.6.1810-master-93453213 - -overnight-fedora-30-aarch64: - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:aarch64-30-master-59168197 - tags: - - aarch64 - <<: *tests - # We need to override the exclusion from the template - # in order to run on schedules - except: [] - only: - - schedules - -tests-unix: - # Use fedora here, to a) run a test on fedora and b) ensure that we - # can get rid of ostree - this is not possible with debian-8 - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 - <<: *tests - variables: - BST_FORCE_SANDBOX: "chroot" - - script: - - # We remove the Bubblewrap and OSTree packages here so that we catch any - # codepaths that try to use them. Removing OSTree causes fuse-libs to - # disappear unless we mark it as user-installed. - - dnf mark install fuse-libs systemd-udev - - dnf erase -y bubblewrap ostree - - # Since the unix platform is required to run as root, no user change required - - ${TEST_COMMAND} - -tests-buildbox: - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 - <<: *tests - variables: - BST_FORCE_SANDBOX: "buildbox" - script: - - - dnf install -y fuse3 - - # Before buildbox is a first class citizen we need a good install story for users and this test - # should mirror that story, for now we build in the test as it is quick and easy. - - # Build and install buildbox - - dnf install -y fuse3-devel glibc-static grpc-plugins grpc-devel protobuf-devel cmake gcc gcc-c++ libuuid-devel - - git clone https://gitlab.com/BuildGrid/buildbox/buildbox-fuse.git - - cd buildbox-fuse - # Pin a specific commit so that any changes to buildbox do not result in unexpected/unannounced buildstream failures - - git checkout cdd2b00842c39a8f7162c2ae55bf2cefb925e339 - - cmake -B build - - cmake --build build - - cmake --build build --target install - - cd .. - - useradd -Um buildstream - chown -R buildstream:buildstream . - - - su buildstream -c "${TEST_COMMAND}" - -tests-fedora-missing-deps: - # Ensure that tests behave nicely while missing bwrap and ostree - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 - <<: *tests - - script: - # We remove the Bubblewrap and OSTree packages here so that we catch any - # codepaths that try to use them. Removing OSTree causes fuse-libs to - # disappear unless we mark it as user-installed. - - dnf mark install fuse-libs systemd-udev - - dnf erase -y bubblewrap ostree - - - useradd -Um buildstream - - chown -R buildstream:buildstream . - - - ${TEST_COMMAND} - -tests-fedora-update-deps: - # Check if the tests pass after updating requirements to their latest - # allowed version. - allow_failure: true - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 - <<: *tests - - script: - - useradd -Um buildstream - - chown -R buildstream:buildstream . - - - make --always-make --directory requirements - - cat requirements/*.txt - - - su buildstream -c "${TEST_COMMAND}" - -tests-remote-execution: - allow_failure: true - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 - <<: *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 - # Required to be able to connect to the docker daemon. See https://gitlab.com/gitlab-org/gitlab-runner/issues/4501 - DOCKER_TLS_CERTDIR: "" - 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" - -tests-spawn-multiprocessing-start-method: - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 - <<: *tests - variables: - BST_FORCE_START_METHOD: "spawn" - script: - # FIXME: Until all the tests pass as normal, override which tests will run here. - - mkdir -p "${INTEGRATION_CACHE}" - - useradd -Um buildstream - - chown -R buildstream:buildstream . - - su buildstream -c "tox -- ${PYTEST_ARGS} tests/{artifactcache,cachekey,elements,format,frontend,internals,plugins,sourcecache}" - -# Run type checkers -mypy: - stage: test - - script: - - tox -e mypy - except: - - schedules - -# Lint separately from testing -lint: - # We can't use the default debian:9 based image here since that comes with - # Python 3.5, and Black requires Python >= 3.6. - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 - stage: test - - before_script: - # Diagnostics - - python3 --version - - script: - - tox -e format-check,lint - except: - - schedules - -# Catch regressions in native windows support -tests-win32-master: - stage: test - variables: - LC_ALL: C.UTF-8 - LANG: C.UTF-8 - tags: - - win32 - script: - - tox -e win32 - only: - - master - -# Optional test to catch regressions in native windows support on non-master branches -tests-win32-non-master: - stage: test - variables: - LC_ALL: C.UTF-8 - LANG: C.UTF-8 - tags: - - win32 - script: - - tox -e win32 - except: - - master - when: manual - -tests-wsl-master: - stage: test - variables: - LC_ALL: C.UTF-8 - LANG: C.UTF-8 - tags: - - wsl - before_script: - - mount - - df -h - - PATH=/root/.local/bin:$PATH tox --version - script: - # Install static buildbox-casd binary - - wget https://buildbox-casd-binaries.nyc3.cdn.digitaloceanspaces.com/buildbox-casd-x86_64-linux-20191104-598100dd.tar.xz - - tar -C /root/.local/bin -xf buildbox-casd-x86_64-linux-20191104-598100dd.tar.xz - - - PATH=/root/.local/bin:$PATH ${TEST_COMMAND} - only: - - master - -tests-wsl-non-master: - stage: test - variables: - LC_ALL: C.UTF-8 - LANG: C.UTF-8 - tags: - - wsl - before_script: - - mount - - df -h - - PATH=/root/.local/bin:$PATH tox --version - script: - # Install static buildbox-casd binary - - wget https://buildbox-casd-binaries.nyc3.cdn.digitaloceanspaces.com/buildbox-casd-x86_64-linux-20191104-598100dd.tar.xz - - tar -C /root/.local/bin -xf buildbox-casd-x86_64-linux-20191104-598100dd.tar.xz - - - PATH=/root/.local/bin:$PATH ${TEST_COMMAND} - when: manual - except: - - master - -# Automatically build documentation for every commit, we want to know -# if building documentation fails even if we're not deploying it. -docs: - stage: test - variables: - BST_FORCE_SESSION_REBUILD: 1 - script: - - env BST_SOURCE_CACHE="$(pwd)/cache/integration-cache/sources" tox -e docs - - mv doc/build/html public - except: - - schedules - artifacts: - paths: - - public/ - -.overnight-tests: &overnight-tests-template - stage: test - image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 - variables: - BST_EXT_URL: git+https://gitlab.com/BuildStream/bst-plugins-experimental.git - BST_EXT_REF: 0.12.0-173-gbe5ac19#egg=bst_plugins_experimental[ostree,cargo] - FD_SDK_REF: freedesktop-sdk-19.08.3-buildstream2-0-gb66129f8e86acb1b6f35b825607b8e60362773a2 - before_script: - - | - mkdir -p "${HOME}/.config" - cat <"${HOME}/.config/buildstream.conf" - scheduler: - fetchers: 2 - EOF - - dnf install -y ostree python3-gobject-base - - pip3 install -r requirements/requirements.txt -r requirements/plugin-requirements.txt - - pip3 wheel --wheel-dir wheels/ --no-deps . - - pip3 install --no-index wheels/* - - pip3 install --user -e ${BST_EXT_URL}@${BST_EXT_REF} - - git clone https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git - - git -C freedesktop-sdk checkout ${FD_SDK_REF} - artifacts: - paths: - - "${HOME}/.cache/buildstream/logs" - 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/project.conf - - make -C freedesktop-sdk - tags: - - overnight-tests - -##################################################### -# Post stage # -##################################################### - -analysis: - stage: post - script: - - | - pip3 install radon - mkdir analysis - - - | - echo "Calculating Maintainability Index" - radon mi -s -j src/buildstream > analysis/mi.json - radon mi -s src/buildstream - - - | - echo "Calculating Cyclomatic Complexity" - radon cc -a -s -j src/buildstream > analysis/cc.json - radon cc -a -s src/buildstream - - - | - echo "Calculating Raw Metrics" - radon raw -s -j src/buildstream > analysis/raw.json - radon raw -s src/buildstream - - except: - - schedules - artifacts: - paths: - - analysis/ - -# Collate coverage reports -# -coverage: - stage: post - coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/' - script: - - cp -a .coverage-reports/ ./coverage-sources - - tox -e coverage - - cp -a .coverage-reports/ ./coverage-report - dependencies: - - tests-centos-7.6 - - tests-debian-9 - - tests-debian-10 - - tests-fedora-30 - - tests-fedora-31 - - tests-fedora-missing-deps - - tests-fedora-update-deps - - tests-remote-execution - - tests-ubuntu-18.04 - - tests-unix - except: - - schedules - artifacts: - paths: - - coverage-sources/ - - coverage-report/ - -# Deploy, only for merges which land on master branch. -# -pages: - 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/ - only: - # - # FIXME: - # - # Ideally we want to publish to a different subdir of - # pages depending on which stable branch we are building here, - # not currently automatically supported but can be worked around. - # - # See https://gitlab.com/gitlab-org/gitlab-ce/issues/35141 - # - - master - except: - - schedules + - su buildstream -c "BST_FORCE_SESSION_REBUILD=yes tox -e docs" + - git diff + +# tests-debian-9: +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-debian:9-master-93453213 +# <<: *tests + +# tests-debian-10: +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-debian:10-master-97554983 +# <<: *tests + +# tests-fedora-30: +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:30-master-93453213 +# <<: *tests + +# tests-fedora-31: +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 +# <<: *tests + +# tests-ubuntu-18.04: +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-ubuntu:18.04-master-93453213 +# <<: *tests + +# tests-centos-7.6: +# <<: *tests +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-centos:7.6.1810-master-93453213 + +# overnight-fedora-30-aarch64: +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:aarch64-30-master-59168197 +# tags: +# - aarch64 +# <<: *tests +# # We need to override the exclusion from the template +# # in order to run on schedules +# except: [] +# only: +# - schedules + +# tests-unix: +# # Use fedora here, to a) run a test on fedora and b) ensure that we +# # can get rid of ostree - this is not possible with debian-8 +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 +# <<: *tests +# variables: +# BST_FORCE_SANDBOX: "chroot" + +# script: + +# # We remove the Bubblewrap and OSTree packages here so that we catch any +# # codepaths that try to use them. Removing OSTree causes fuse-libs to +# # disappear unless we mark it as user-installed. +# - dnf mark install fuse-libs systemd-udev +# - dnf erase -y bubblewrap ostree + +# # Since the unix platform is required to run as root, no user change required +# - ${TEST_COMMAND} + +# tests-buildbox: +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 +# <<: *tests +# variables: +# BST_FORCE_SANDBOX: "buildbox" + +# script: + +# - dnf install -y fuse3 + +# # Before buildbox is a first class citizen we need a good install story for users and this test +# # should mirror that story, for now we build in the test as it is quick and easy. + +# # Build and install buildbox +# - dnf install -y fuse3-devel glibc-static grpc-plugins grpc-devel protobuf-devel cmake gcc gcc-c++ libuuid-devel +# - git clone https://gitlab.com/BuildGrid/buildbox/buildbox-fuse.git +# - cd buildbox-fuse +# # Pin a specific commit so that any changes to buildbox do not result in unexpected/unannounced buildstream failures +# - git checkout cdd2b00842c39a8f7162c2ae55bf2cefb925e339 +# - cmake -B build +# - cmake --build build +# - cmake --build build --target install +# - cd .. + +# - useradd -Um buildstream +# - chown -R buildstream:buildstream . + +# - su buildstream -c "${TEST_COMMAND}" + +# tests-fedora-missing-deps: +# # Ensure that tests behave nicely while missing bwrap and ostree +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 +# <<: *tests + +# script: +# # We remove the Bubblewrap and OSTree packages here so that we catch any +# # codepaths that try to use them. Removing OSTree causes fuse-libs to +# # disappear unless we mark it as user-installed. +# - dnf mark install fuse-libs systemd-udev +# - dnf erase -y bubblewrap ostree + +# - useradd -Um buildstream +# - chown -R buildstream:buildstream . + +# - ${TEST_COMMAND} + +# tests-fedora-update-deps: +# # Check if the tests pass after updating requirements to their latest +# # allowed version. +# allow_failure: true +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 +# <<: *tests + +# script: +# - useradd -Um buildstream +# - chown -R buildstream:buildstream . + +# - make --always-make --directory requirements +# - cat requirements/*.txt + +# - su buildstream -c "${TEST_COMMAND}" + +# tests-remote-execution: +# allow_failure: true +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 +# <<: *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 +# # Required to be able to connect to the docker daemon. See https://gitlab.com/gitlab-org/gitlab-runner/issues/4501 +# DOCKER_TLS_CERTDIR: "" +# 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" + +# tests-spawn-multiprocessing-start-method: +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 +# <<: *tests +# variables: +# BST_FORCE_START_METHOD: "spawn" +# script: +# # FIXME: Until all the tests pass as normal, override which tests will run here. +# - mkdir -p "${INTEGRATION_CACHE}" +# - useradd -Um buildstream +# - chown -R buildstream:buildstream . +# - su buildstream -c "tox -- ${PYTEST_ARGS} tests/{artifactcache,cachekey,elements,format,frontend,internals,plugins,sourcecache}" + +# # Run type checkers +# mypy: +# stage: test + +# script: +# - tox -e mypy +# except: +# - schedules + +# # Lint separately from testing +# lint: +# # We can't use the default debian:9 based image here since that comes with +# # Python 3.5, and Black requires Python >= 3.6. +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 +# stage: test + +# before_script: +# # Diagnostics +# - python3 --version + +# script: +# - tox -e format-check,lint +# except: +# - schedules + +# # Catch regressions in native windows support +# tests-win32-master: +# stage: test +# variables: +# LC_ALL: C.UTF-8 +# LANG: C.UTF-8 +# tags: +# - win32 +# script: +# - tox -e win32 +# only: +# - master + +# # Optional test to catch regressions in native windows support on non-master branches +# tests-win32-non-master: +# stage: test +# variables: +# LC_ALL: C.UTF-8 +# LANG: C.UTF-8 +# tags: +# - win32 +# script: +# - tox -e win32 +# except: +# - master +# when: manual + +# tests-wsl-master: +# stage: test +# variables: +# LC_ALL: C.UTF-8 +# LANG: C.UTF-8 +# tags: +# - wsl +# before_script: +# - mount +# - df -h +# - PATH=/root/.local/bin:$PATH tox --version +# script: +# # Install static buildbox-casd binary +# - wget https://buildbox-casd-binaries.nyc3.cdn.digitaloceanspaces.com/buildbox-casd-x86_64-linux-20191104-598100dd.tar.xz +# - tar -C /root/.local/bin -xf buildbox-casd-x86_64-linux-20191104-598100dd.tar.xz + +# - PATH=/root/.local/bin:$PATH ${TEST_COMMAND} +# only: +# - master + +# tests-wsl-non-master: +# stage: test +# variables: +# LC_ALL: C.UTF-8 +# LANG: C.UTF-8 +# tags: +# - wsl +# before_script: +# - mount +# - df -h +# - PATH=/root/.local/bin:$PATH tox --version +# script: +# # Install static buildbox-casd binary +# - wget https://buildbox-casd-binaries.nyc3.cdn.digitaloceanspaces.com/buildbox-casd-x86_64-linux-20191104-598100dd.tar.xz +# - tar -C /root/.local/bin -xf buildbox-casd-x86_64-linux-20191104-598100dd.tar.xz + +# - PATH=/root/.local/bin:$PATH ${TEST_COMMAND} +# when: manual +# except: +# - master + +# # Automatically build documentation for every commit, we want to know +# # if building documentation fails even if we're not deploying it. +# docs: +# stage: test +# variables: +# BST_FORCE_SESSION_REBUILD: 1 +# script: +# - env BST_SOURCE_CACHE="$(pwd)/cache/integration-cache/sources" tox -e docs +# - mv doc/build/html public +# except: +# - schedules +# artifacts: +# paths: +# - public/ + +# .overnight-tests: &overnight-tests-template +# stage: test +# image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:31-master-97748867 +# variables: +# BST_EXT_URL: git+https://gitlab.com/BuildStream/bst-plugins-experimental.git +# BST_EXT_REF: 0.12.0-173-gbe5ac19#egg=bst_plugins_experimental[ostree,cargo] +# FD_SDK_REF: freedesktop-sdk-19.08.3-buildstream2-0-gb66129f8e86acb1b6f35b825607b8e60362773a2 +# before_script: +# - | +# mkdir -p "${HOME}/.config" +# cat <"${HOME}/.config/buildstream.conf" +# scheduler: +# fetchers: 2 +# EOF +# - dnf install -y ostree python3-gobject-base +# - pip3 install -r requirements/requirements.txt -r requirements/plugin-requirements.txt +# - pip3 wheel --wheel-dir wheels/ --no-deps . +# - pip3 install --no-index wheels/* +# - pip3 install --user -e ${BST_EXT_URL}@${BST_EXT_REF} +# - git clone https://gitlab.com/freedesktop-sdk/freedesktop-sdk.git +# - git -C freedesktop-sdk checkout ${FD_SDK_REF} +# artifacts: +# paths: +# - "${HOME}/.cache/buildstream/logs" +# 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/project.conf +# - make -C freedesktop-sdk +# tags: +# - overnight-tests + +# ##################################################### +# # Post stage # +# ##################################################### + +# analysis: +# stage: post +# script: +# - | +# pip3 install radon +# mkdir analysis + +# - | +# echo "Calculating Maintainability Index" +# radon mi -s -j src/buildstream > analysis/mi.json +# radon mi -s src/buildstream + +# - | +# echo "Calculating Cyclomatic Complexity" +# radon cc -a -s -j src/buildstream > analysis/cc.json +# radon cc -a -s src/buildstream + +# - | +# echo "Calculating Raw Metrics" +# radon raw -s -j src/buildstream > analysis/raw.json +# radon raw -s src/buildstream + +# except: +# - schedules +# artifacts: +# paths: +# - analysis/ + +# # Collate coverage reports +# # +# coverage: +# stage: post +# coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/' +# script: +# - cp -a .coverage-reports/ ./coverage-sources +# - tox -e coverage +# - cp -a .coverage-reports/ ./coverage-report +# dependencies: +# - tests-centos-7.6 +# - tests-debian-9 +# - tests-debian-10 +# - tests-fedora-30 +# - tests-fedora-31 +# - tests-fedora-missing-deps +# - tests-fedora-update-deps +# - tests-remote-execution +# - tests-ubuntu-18.04 +# - tests-unix +# except: +# - schedules +# artifacts: +# paths: +# - coverage-sources/ +# - coverage-report/ + +# # Deploy, only for merges which land on master branch. +# # +# pages: +# 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/ +# only: +# # +# # FIXME: +# # +# # Ideally we want to publish to a different subdir of +# # pages depending on which stable branch we are building here, +# # not currently automatically supported but can be worked around. +# # +# # See https://gitlab.com/gitlab-org/gitlab-ce/issues/35141 +# # +# - master +# except: +# - schedules diff --git a/doc/source/sessions-stored/junctions-build.html b/doc/source/sessions-stored/junctions-build.html deleted file mode 100644 index ca623a8aa..000000000 --- a/doc/source/sessions-stored/junctions-build.html +++ /dev/null @@ -1,150 +0,0 @@ - -
-user@host:~/junctions$ bst build callHello.bst
-
-[--:--:--][][] START   Build
-[--:--:--][][] START   Loading pipeline
-[00:00:00][][] SUCCESS Loading pipeline
-[--:--:--][][] START   Resolving pipeline
-[00:00:00][][] SUCCESS Resolving pipeline
-[--:--:--][][] START   Resolving cached state
-[00:00:00][][] SUCCESS Resolving cached state
-[--:--:--][][] START   Checking sources
-[00:00:00][][] SUCCESS Checking sources
-
-BuildStream Version 1.1.3+221.g589c77c2.dirty
-  Session Start: Tuesday, 17-07-2018 at 16:23:26
-  Project:       junctions (/home/user/buildstream/doc/examples/junctions)
-  Targets:       callHello.bst
-
-User Configuration
-  Configuration File:      /home/user/buildstream/doc/run-bst-6avjvngj/buildstream.conf
-  Log Files:               /home/user/buildstream/doc/run-bst-6avjvngj/logs
-  Source Mirrors:          /home/user/buildstream/doc/run-bst-6avjvngj/sources
-  Build Area:              /home/user/buildstream/doc/run-bst-6avjvngj/build
-  Artifact Cache:          /home/user/buildstream/doc/run-bst-6avjvngj/artifacts
-  Strict Build Plan:       Yes
-  Maximum Fetch Tasks:     10
-  Maximum Build Tasks:     4
-  Maximum Push Tasks:      4
-  Maximum Network Retries: 2
-
-Pipeline
-fetch needed 5ca6420ca17be3f95895b75750404788d01bdd48ab4b7b665cff5e545eed3771 hello-junction.bst:base/alpine.bst 
-     waiting 180088afb6d3b123e54f63bf1000ff4840e686edea7a017c38165d27a3e2b5b8 hello-junction.bst:base.bst 
-fetch needed 377e2862ab1e4bdba12492541415c691979cdd606a3e28475c240c30a9808691 hello-junction.bst:hello.bst 
-     waiting e366cac8cd0af970b61acc59724a23b5337d4d8fc5e5dbf2cdbb87de195bdca0 callHello.bst 
-===============================================================================
-[--:--:--][5ca6420c][fetch:hello-junction.bst:base/alpine.bst] START   autotools/base-alpine/5ca6420c-fetch.30873.log
-[--:--:--][5ca6420c][fetch:hello-junction.bst:base/alpine.bst] START   Fetching https://gnome7.codethink.co.uk/tarballs/integration-tests-base.v1.x86_64.tar.xz
-[--:--:--][377e2862][fetch:hello-junction.bst:hello.bst  ] START   autotools/hello/377e2862-fetch.30875.log
-[--:--:--][377e2862][fetch:hello-junction.bst:hello.bst  ] START   Fetching https://ftp.gnu.org/gnu/automake/automake-1.16.tar.gz
-[00:00:02][377e2862][fetch:hello-junction.bst:hello.bst  ] SUCCESS Fetching https://ftp.gnu.org/gnu/automake/automake-1.16.tar.gz
-[00:00:02][377e2862][fetch:hello-junction.bst:hello.bst  ] SUCCESS autotools/hello/377e2862-fetch.30875.log
-[00:00:03][5ca6420c][fetch:hello-junction.bst:base/alpine.bst] SUCCESS Fetching https://gnome7.codethink.co.uk/tarballs/integration-tests-base.v1.x86_64.tar.xz
-[00:00:03][5ca6420c][fetch:hello-junction.bst:base/alpine.bst] SUCCESS autotools/base-alpine/5ca6420c-fetch.30873.log
-[--:--:--][5ca6420c][build:hello-junction.bst:base/alpine.bst] START   autotools/base-alpine/5ca6420c-build.30877.log
-[--:--:--][5ca6420c][build:hello-junction.bst:base/alpine.bst] START   Staging sources
-[00:00:06][5ca6420c][build:hello-junction.bst:base/alpine.bst] SUCCESS Staging sources
-[--:--:--][5ca6420c][build:hello-junction.bst:base/alpine.bst] START   Caching artifact
-[00:00:04][5ca6420c][build:hello-junction.bst:base/alpine.bst] SUCCESS Caching artifact
-[00:00:12][5ca6420c][build:hello-junction.bst:base/alpine.bst] SUCCESS autotools/base-alpine/5ca6420c-build.30877.log
-[--:--:--][180088af][build:hello-junction.bst:base.bst   ] START   autotools/base/180088af-build.30882.log
-[--:--:--][180088af][build:hello-junction.bst:base.bst   ] START   Caching artifact
-[00:00:00][180088af][build:hello-junction.bst:base.bst   ] SUCCESS Caching artifact
-[00:00:00][180088af][build:hello-junction.bst:base.bst   ] SUCCESS autotools/base/180088af-build.30882.log
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   autotools/hello/377e2862-build.30884.log
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Staging dependencies
-[00:00:01][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Staging dependencies
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Integrating sandbox
-[00:00:00][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Integrating sandbox
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Staging sources
-[00:00:00][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Staging sources
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Running configure-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] STATUS  Running configure-commands
-
-    export NOCONFIGURE=1;
-    
-    if [ -x ./configure ]; then true;
-    elif [ -x autogen ]; then ./autogen;
-    elif [ -x autogen.sh ]; then ./autogen.sh;
-    elif [ -x bootstrap ]; then ./bootstrap;
-    elif [ -x bootstrap.sh ]; then ./bootstrap.sh;
-    else autoreconf -ivf;
-    fi
-
-[00:00:03][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Running configure-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Running configure-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] STATUS  Running configure-commands
-
-    ./configure --prefix=/usr \
-    --exec-prefix=/usr \
-    --bindir=/usr/bin \
-    --sbindir=/usr/sbin \
-    --sysconfdir=/etc \
-    --datadir=/usr/share \
-    --includedir=/usr/include \
-    --libdir=/usr/lib \
-    --libexecdir=/usr/libexec \
-    --localstatedir=/var \
-    --sharedstatedir=/usr/com \
-    --mandir=/usr/share/man \
-    --infodir=/usr/share/info
-
-[00:00:01][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Running configure-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Running build-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Running build-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] STATUS  Running build-commands
-
-    make
-
-[00:00:00][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Running build-commands
-[00:00:00][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Running build-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Running install-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Running install-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] STATUS  Running install-commands
-
-    make -j1 DESTDIR="/buildstream-install" install
-
-[00:00:00][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Running install-commands
-[00:00:00][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Running install-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Running strip-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Running strip-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] STATUS  Running strip-commands
-
-    find "/buildstream-install" -type f \
-      '(' -perm -111 -o -name '*.so*' \
-          -o -name '*.cmxs' -o -name '*.node' ')' \
-      -exec sh -ec \
-      'read -n4 hdr <"$1" # check for elf header
-       if [ "$hdr" != "$(printf \\x7fELF)" ]; then
-           exit 0
-       fi
-       debugfile="/buildstream-install/usr/lib/debug/$(basename "$1")"
-       mkdir -p "$(dirname "$debugfile")"
-       objcopy --only-keep-debug --compress-debug-sections "$1" "$debugfile"
-       chmod 644 "$debugfile"
-       strip --remove-section=.comment --remove-section=.note --strip-unneeded "$1"
-       objcopy --add-gnu-debuglink "$debugfile" "$1"' - {} ';'
-
-[00:00:00][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Running strip-commands
-[00:00:00][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Running strip-commands
-[--:--:--][377e2862][build:hello-junction.bst:hello.bst  ] START   Caching artifact
-[00:00:00][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS Caching artifact
-[00:00:06][377e2862][build:hello-junction.bst:hello.bst  ] SUCCESS autotools/hello/377e2862-build.30884.log
-[--:--:--][e366cac8][build:callHello.bst                 ] START   junctions/callHello/e366cac8-build.31865.log
-[--:--:--][e366cac8][build:callHello.bst                 ] START   Staging sources
-[00:00:00][e366cac8][build:callHello.bst                 ] SUCCESS Staging sources
-[--:--:--][e366cac8][build:callHello.bst                 ] START   Caching artifact
-[00:00:00][e366cac8][build:callHello.bst                 ] SUCCESS Caching artifact
-[00:00:00][e366cac8][build:callHello.bst                 ] SUCCESS junctions/callHello/e366cac8-build.31865.log
-[00:00:23][][] SUCCESS Build
-
-Pipeline Summary
-  Total:       4
-  Session:     4
-  Fetch Queue: processed 2, skipped 2, failed 0 
-  Build Queue: processed 4, skipped 0, failed 0
-
diff --git a/tox.ini b/tox.ini index 30e398ceb..8d695af81 100644 --- a/tox.ini +++ b/tox.ini @@ -30,7 +30,7 @@ deps = py{35,36,37}: -rrequirements/requirements.txt py{35,36,37}: -rrequirements/dev-requirements.txt py{35,36,37}: -rrequirements/plugin-requirements.txt - git+https://gitlab.com/BuildStream/bst-plugins-experimental.git@5b004e5850ab0e987c00c681b2c768f6ae02586b + git+https://gitlab.com/BuildStream/bst-plugins-experimental.git@788a918bb5859366a39b1ce663453cee09950d24 # Only require coverage and pytest-cov when using it !nocover: -rrequirements/cov-requirements.txt -- cgit v1.2.1