From f90e93c1f46907f7cba007fb9d80d8f6445fcf09 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Wed, 5 Jun 2019 17:38:07 +0200 Subject: [PATCH] test: make routes job fail if number of files is lower than 100 --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7647cc2f..e89afa22 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,6 +50,8 @@ routes: script: - npm install @openstapps/core - node lib/cli.js routes node_modules/@openstapps/core/lib routes.md + - NUMBER_OF_LINES=$(cat routes.md | wc -l) + - if [ "$NUMBER_OF_LINES" -lt 100 ]; then exit 1; fi artifacts: paths: - routes.md