Travis/Local
From charlesreid1
This page covers notes on running local Travis tests (replicating the Travis environment on your local machine).
Guide here: https://github.com/erdc/proteus/wiki/Replicating-the-TravisCI-Environment-on-your-Local-Machine
Setup
Docker Pull
The Travis environment can be replicated with a Docker image. The docker image is travisci/ci-garnet and there is no latest tag.
Go to this page: https://hub.docker.com/r/travisci/ci-garnet/tags/
Click the "Tags" tab
Do a docker pull like this:
docker pull travisci/ci-garnet:packer-1510529493-6aa37a4
where the packer part comes from the latest tag.
Run the Travis Container
Run the container and have it execute the bash shell:
docker run -it travisci/ci-garnet:packer-1490989530 /bin/bash
Use Travis.yml
To get the container set up before you run your tests, run the commands contained in the travis.yml script in the repository you're trying to run tests for.
Let's look at a sample travis.yml: https://github.com/soft-matter/trackpy/blob/master/.travis.yml