https://travis-ci.com/github/sineverba/herodock/builds/166501266
At line 491 of log you can see that I run this test:
docker run -d --name $HEROKU_APP_NAME -e "PORT=9876" -p 9876:9876 ${HEROKU_REGISTRY_IMAGE};
docker exec -it $HEROKU_APP_NAME php -i | grep "PHP Version => 7.4.5"
docker inspect -f {{.Config.Labels}} $HEROKU_APP_NAME
docker inspect -f {{.Config.Labels}} $HEROKU_APP_NAME | grep $VCS_REF
In detail, now PHP version is 7.4.6, so my grep doesn’t output nothing but Travis doesn’t fail. How can I rewrite it to expect fail on change version?
Github link of demo project: https://github.com/sineverba/herodock
Edit: I tried also move test.sh script under script test, but it doesn’t fail:
https://travis-ci.com/github/sineverba/herodock/builds/166513716 line 589