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.
This commit is contained in:
Nicolas Dufresne 2018-11-10 20:35:10 -05:00
parent ba98b4138a
commit 64e3b154cd

View file

@ -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: