This tool
- computes jobs the Travis-CI would run
- generates docker image (that can be customized) for each job
- runs each job
What it means:
- no switching of PHP versions to test your library
- no forgetting to run a specific job
- prepare everything locally and verify the build passes without hassle
- clean testing environment every time
This does not replace a build system (which would be able to run identical tasks on CI and local), but even a build system wouldn't be able to guarantee executing full Travis matrix with all jobs.
- clone the project
- install dependencies using composer
- build docker images in
docker-images/
usingdocker-compose build
- Pro-Tip: you can customize them!
- run the executable
bin/travis-local
in desired directory