From charlesreid1

No edit summary
Line 4: Line 4:


=Setup=
=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.
The Travis environment can be replicated with a Docker image. The docker image is travisci/ci-garnet and there is no latest tag.
Line 18: Line 20:


where the packer part comes from the latest tag.
where the packer part comes from the latest tag.
==Run the Travis Container==
Run the container and have it execute the bash shell:
<pre>
docker run -it travisci/ci-garnet:packer-1490989530 /bin/bash
</pre>
==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.

Revision as of 05:50, 13 November 2017

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.