test: make routes job fail if number of files is lower than 100

This commit is contained in:
Karl-Philipp Wulfert
2019-06-05 17:38:07 +02:00
parent 4d4f7bf7ac
commit f90e93c1f4

View File

@@ -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