From 84c4e5ebbbc7f9cf6b6bce6b0cfec114e88d1db7 Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Fri, 20 Apr 2018 19:25:29 +0200 Subject: [PATCH] Added CI check to catch build errors --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 217047794b..b2078f1530 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,6 +46,7 @@ test_front: script: - yarn install + - yarn run build | tee /dev/stderr | (! grep -i 'ERROR in') - yarn run unit cache: key: "$CI_PROJECT_ID__front_dependencies" @@ -70,7 +71,9 @@ build_front: - yarn install - yarn run i18n-extract - yarn run i18n-compile - - yarn run build + # this is to ensure we don't have any errors in the output, + # cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169 + - yarn run build | tee /dev/stderr | (! grep -i 'ERROR in') cache: key: "$CI_PROJECT_ID__front_dependencies" paths: -- GitLab