diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 67248bc26bd2ea7330e6fe61e536f3ffb5563b30..43771b746eb420da8051c022ec2f18893c04302f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,6 @@ cache: - cache/ stages: - - prepare - test - post @@ -15,41 +14,6 @@ variables: INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache" TEST_COMMAND: "tox -- --color=yes --integration" -##################################################### -# Prepare stage # -##################################################### - -# Create a source distribution -# -source_dist: - stage: prepare - script: - - # Generate the source distribution tarball - # - - python3 setup.py sdist - - tar -ztf dist/* - - tarball=$(cd dist && echo $(ls *)) - - # Verify that the source distribution tarball can be installed correctly - # - - pip3 install dist/*.tar.gz - - bst --version - - # unpack tarball as `dist/buildstream` directory - - | - cat > dist/unpack.sh << EOF - #!/bin/sh - tar -zxf ${tarball} - mv ${tarball%.tar.gz} buildstream - EOF - - # Make our helpers executable - - chmod +x dist/unpack.sh - artifacts: - paths: - - dist/ - ##################################################### # Test stage # @@ -72,8 +36,7 @@ source_dist: - useradd -Um buildstream - chown -R buildstream:buildstream . - # Run the tests from the source distribution, We run as a simple - # user to test for permission issues + # Run the tests as a simple user to test for permission issues - su buildstream -c "${TEST_COMMAND}" after_script: @@ -192,7 +155,8 @@ docs: scheduler: fetchers: 2 EOF - - (cd dist && ./unpack.sh && cd buildstream && pip3 install .) + - pip3 install -r tools/requirements.txt -r tools/dev-requirements.txt + - pip3 install --no-index . - 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} @@ -275,7 +239,6 @@ coverage: stage: post coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/' script: - - cd dist && ./unpack.sh && cd buildstream - pip3 install -r tools/requirements.txt -r tools/dev-requirements.txt - pip3 install --no-index . - mkdir report @@ -290,7 +253,6 @@ coverage: - tests-fedora-27 - tests-fedora-28 - tests-unix - - source_dist except: - schedules @@ -299,7 +261,6 @@ coverage: pages: stage: post dependencies: - - source_dist - docs variables: ACME_DIR: public/.well-known/acme-challenge