Commit aa34435a authored by David Haynes's avatar David Haynes 🙆

Fail a build if there are Latest packages that can be installed

- simple bash if/else
parent 392c357f
Pipeline #1262 passed with stage
in 1 minute and 21 seconds
......@@ -56,6 +56,6 @@ Go-py3.6:
image: library/python:3.6
type: test
script:
- pip list --outdated
- if pip list --outdated | grep "Latest" | wc -l > 0; then echo 1; else echo 0; fi
- coverage run --source=go --omit=*migrations/*,*admin.py,*manage.py,*wsgi.py,*settings.py,*secret.py,*__init__.py,*.pyc,*templates/*,*static/* manage.py test
- coverage html -i && grep pc_cov htmlcov/index.html | egrep -o "[0-9]+\%" | awk '{ print "covered " $1;}'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment