From f3dc6a55cfd12440997267cb1d8c5bb41d640250 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 24 Jan 2020 22:41:23 +0100 Subject: [PATCH] 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: 16e2d3c77c9d ("gitlab-ci.yml: set git user/email (!1848)") --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 330ca6c7..159b06b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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