Documentation ¶
Overview ¶
Package travis implements some helper functions to use during tests. Many times certain facilities are not available, or tests must run differently.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnvVar ¶
type EnvVar string
EnvVar is a type to use travis-only env var names with the type system.
const ( VarCI EnvVar = "CI" VarTravis EnvVar = "TRAVIS" VarBranch EnvVar = "TRAVIS_BRANCH" VarBuildDir EnvVar = "TRAVIS_BUILD_DIR" VarBuildId EnvVar = "TRAVIS_BUILD_ID" VarBuildNumber EnvVar = "TRAVIS_BUILD_NUMBER" VarCommit EnvVar = "TRAVIS_COMMIT" VarCommitRange EnvVar = "TRAVIS_COMMIT_RANGE" VarJobId EnvVar = "TRAVIS_JOB_ID" VarJobNumber EnvVar = "TRAVIS_JOB_NUMBER" VarPullRequest EnvVar = "TRAVIS_PULL_REQUEST" VarSecureEnvVars EnvVar = "TRAVIS_SECURE_ENV_VARS" VarRepoSlug EnvVar = "TRAVIS_REPO_SLUG" VarOsName EnvVar = "TRAVIS_OS_NAME" VarTag EnvVar = "TRAVIS_TAG" VarGoVersion EnvVar = "TRAVIS_GO_VERSION" )
Environment variables that TravisCI uses.
Click to show internal directories.
Click to hide internal directories.