gitlab-ci.yml: allow 'git config' cmds to fail

Two "su pmos -c 'git config --global user....'" commands were added to
the before_script in .gitlab-ci.yml. They work fine with the regular
gitlab runners, but fail with the custom gitlab runner that runs the
qemu test. Simply allow the command to fail, because it isn't needed on
the custom gitlab runner, as it doesn't run related tests.

Fixes: 16e2d3c77c ("gitlab-ci.yml: set git user/email (!1848)")
This commit is contained in:
Oliver Smith 2020-01-24 22:41:23 +01:00
parent 0244ffbf53
commit f3dc6a55cf
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ before_script:
- "source venv/bin/activate"
- "pip3 install pytest-cov python-coveralls pytest"
- "python3 --version"
- "su pmos -c 'git config --global user.email postmarketos-ci@localhost'"
- "su pmos -c 'git config --global user.name postmarketOS_CI'"
- "su pmos -c 'git config --global user.email postmarketos-ci@localhost' || true"
- "su pmos -c 'git config --global user.name postmarketOS_CI' || true"
stages:
- checks