Skip to content

3. Docker integration

Moshe Zada edited this page Feb 25, 2019 · 1 revision

Tomato CLI getting the context of the build from environment variables exposed by the CI platform.
In docker environment, you need to explicitly pass environment variables to applications running inside the docker.
In order to do this, you need to pass the CI related environment variables to the build docker.
best way to do this is to send all CI vars to the docker:
docker run --env-file=<(env|grep '^TRAVIS_') mocha
Change TRAVIS_ to the appropriate CI prefix

Travis - TRAVIS_
CircleCI - CIRCLECI_
Appveyor - APPVEYOR_

Clone this wiki locally