summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2018-08-24 02:16:55 +0100
committerChandan Singh <csingh43@bloomberg.net>2018-08-24 03:12:03 +0100
commit56096b60daac029900e032f6953536be89783836 (patch)
treea36da5fc37c5d61725632c28077ce6c230069fb1
parent8216ff8dac91692c9358c3e535f5a0a2c26c1332 (diff)
downloadbuildstream-chandan/ci-sdist-test.tar.gz
.gitlab-ci.yml: Verify that source tarball installs correctlychandan/ci-sdist-test
Add a check to verify that the source distribution tarball that we generate installs corrctly. It is useful to do this check as this is the same tarball will be used when installing BuildStream via PyPI. This check also happens indirectly in the coverage job where we install BuildStream but this check makes it more explicit and will also cause the CI to fail early if the tarball is not correct.
-rw-r--r--.gitlab-ci.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a5aa0bc45..d93704bb0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,6 +36,11 @@ source_dist:
- 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