Closed JosiahRegencia closed 6 years ago
Update: A step forward. Turns out my path was wrong. So I edited it and it works. However, an error still exists.
psycopg2.OperationalError: could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?
I'm not yet sure why
Should be connecting to a different IP than 127.0.0.1. The docker-compose file starts up Postgres on a different container, so it should be something like "172.X.X.X".
I tried a different approach. Using Dockerfile.test and docker-compose.test.yml:
I think I'm getting close. In order to run the test the command is: docker-compose -f docker-compose.test.yml -p ci up -d To see the CLI logs: docker logs -f ci_sut_1 docker wait ci_sut_1 shows 1 if tests failed and 0 if tests passed.
For now, there's a problem with the os.chdir() in docker. Still looking at it. Can't see logs of my latest builds in Travis. There was an error while trying to fetch the log.
Probably would be back up later.