Remove redis ping and consolidate before steps
The redis ping is often causing a CI run to fail and it is not necessary. e.g. none of my CI scripts have this step and the tests work fine with Redis.
I would therefore suggest to remove this step.
In addition this script also factors out the before_script
tag from all tests to make the script more DRY.
Here is an example of the occasional error. Retrying the job usually fixes this.
Edited by Erik Kalkoken