IBM/MAX-Question-Answering-Web-App

Enhance Travis-CI test to verify that the docker build completes successfully

Closed this issue · 7 comments

This test should be performed after flake8 testing.

#20
Already finished docker build. Please see the PR here.

@ptitzler I think that if the docker build fails then everything will fail. I will verify this with a test PR

Thank you Brendan @bdwyer2

@ptitzler does PR #21 satisfy you or do you want further testing?

In #20 this line

- docker run -it -d -p 5000:5000 max-question-answering-web-app

is incorrect because port 5000 is not exposed:

https://github.com/IBM/MAX-Question-Answering-Web-App/blob/master/Dockerfile#L23

In general I believe it would have been better to run the docker build after flake 8 (in the scripts section). The motivation is that the source code must be syntactically error free before one would attempt to package it. But I guess one that doesn't change the outcome materially.

We can change add docker ps | grep max-question-answering-web-app to the script section and move flake8 to the build section

Create another PR based on Patrick and Brendan's comments. Thank you for helping me!
#22