swp-fu-eid / eid-fu-swp

Docker-based REST API implemented with Django and restframework.
MIT License
2 stars 1 forks source link

Travis Reports Successful Even If Tests Fail #28

Closed nils-wisiol closed 7 years ago

nils-wisiol commented 7 years ago

Check container exit code like this

Armagetron commented 7 years ago

Should now work with 5f1362337ec0ef7c558cfa4f5819a50f6597b2c7

Armagetron commented 7 years ago

The problem was, that we need to check for the container not the compose. Correct line is exit $(docker ps -a -f exited=1 -q | wc -l | tr -d ' ')