Skip to content
Snippets Groups Projects
Commit 3ce96357 authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

.gitlab-ci.yml: DO NOT MERGE - Install tox and try it in CI

parent 597fb53a
No related branches found
No related tags found
No related merge requests found
Pipeline #41394080 failed
...@@ -13,7 +13,7 @@ stages: ...@@ -13,7 +13,7 @@ stages:
variables: variables:
PYTEST_ADDOPTS: "--color=yes" PYTEST_ADDOPTS: "--color=yes"
INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache" INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache"
TEST_COMMAND: 'python3 setup.py test --index-url invalid://uri --addopts --integration' TEST_COMMAND: 'tox -- --integration'
##################################################### #####################################################
# Prepare stage # # Prepare stage #
...@@ -72,6 +72,10 @@ source_dist: ...@@ -72,6 +72,10 @@ source_dist:
- cd dist && ./unpack.sh - cd dist && ./unpack.sh
- cd buildstream - cd buildstream
# Install tox
- pip3 install tox
- pip3 install tox-venv
script: script:
- useradd -Um buildstream - useradd -Um buildstream
- chown -R buildstream:buildstream . - chown -R buildstream:buildstream .
...@@ -134,6 +138,10 @@ tests-unix: ...@@ -134,6 +138,10 @@ tests-unix:
- dnf mark install fuse-libs - dnf mark install fuse-libs
- dnf erase -y bubblewrap ostree - dnf erase -y bubblewrap ostree
# Install tox
- pip3 install tox
- pip3 install tox-venv
# Since the unix platform is required to run as root, no user change required # Since the unix platform is required to run as root, no user change required
- ${TEST_COMMAND} - ${TEST_COMMAND}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment