Commit 64e3b154 authored by Nicolas Dufresne's avatar Nicolas Dufresne

gitlab-ci: Only run scripts test on related code

Right now we only have one test against build_manifest.py, it
is not needed to run this test if that code haven't changed.
It's really easy to add more file or set a wild card in the
future.
parent ba98b413
......@@ -14,6 +14,9 @@ test manifest:
- dnf install -y python3-pytest python3-pytest-cov python3-requests
script:
- pytest-3 --junitxml=junit.xml --cov=build_manifest gitlab/build_manifest.py
only:
changes:
- "gitlab/build_manifest.py"
coverage: '/TOTAL.*\s+(\d+%)$/'
artifacts:
reports:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment