Show:
Module: AutodocsCi

Methods

init ()

Defined in ci/travis.js:10

Initialisation step for Travis

Used to check/ set any Travis environment variables

shouldRun () Boolean

Defined in ci/travis.js:58

Based on the Travis environment variables, determines whether to trigger generation and publishing of documentation.

If FLAG_PUBLISH_ON_RELEASE is true, then will trigger if Travis says that a tag was pushed.

Otherwise, it will trigger when a branch is pushed, if Travis says that this is not a pull request, and the branch being pushed matches DOCUMENT_BRANCH.

Both cases also require that the correct build index for the current job matches DOCUMENT_JOB_INDEX. This is to ensure that documentation is only published once per successful build.

Returns:

Boolean:

true when documentation should be generated and published

Properties

TRAVIS_BRANCH

String (Environment Variable)

Defined in ci/travis.js:36

Default: None - throws when not set

TRAVIS_BUILD_NUMBER

String (Environment Variable)

Defined in ci/travis.js:43

Default: None - throws when not set

TRAVIS_JOB_NUMBER

String (Environment Variable)

Defined in ci/travis.js:50

Default: None - throws when not set

TRAVIS_PULL_REQUEST

String (Environment Variable)

Defined in ci/travis.js:29

Default: None - throws when not set

TRAVIS_REPO_SLUG

String (Environment Variable)

Defined in ci/travis.js:19

Used to set value of REPO_SLUG

Default: None - throws when not set

TRAVIS_TAG

String (Environment Variable)

Defined in ci/travis.js:84

Default: None