From c207da92bb0c781aa9bd228dbf700a546cd717d3 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Thu, 13 Dec 2018 22:49:48 +0100 Subject: [PATCH] Enable use of aliases in .gitlab-ci.yml Signed-off-by: Severin Kaderli --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cb8673b..e9c358d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,10 +2,11 @@ image: ubuntu:latest before_script: - apt-get update && apt-get install -y --no-install-recommends shellcheck + - shopt -s expand_aliases + - alias shellcheck="shellcheck -x --exclude=SC2034,SC1091,SC1090" Lint: script: - - alias shellcheck="shellcheck -x --exclude=SC2034,SC1091,SC1090" - - shellcheck -x --exclude=SC2034,SC1091 ./system/bin/* + - shellcheck ./system/bin/* - shellcheck ./system/.aliases - shellcheck ./system/.bash_logout - shellcheck ./system/.bash_profile