go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/cli/execruntime/env_travis.go (about) 1 // Copyright (c) Mondoo, Inc. 2 // SPDX-License-Identifier: BUSL-1.1 3 4 package execruntime 5 6 const TRAVIS = "travis" 7 8 var travisEnv = &RuntimeEnv{ 9 Id: TRAVIS, 10 Name: "Travis CI", 11 Namespace: "travis-ci.com", 12 Prefix: "TRAVIS", 13 Identify: []Variable{ 14 { 15 Name: "TRAVIS", 16 }, 17 }, 18 Variables: []Variable{ 19 { 20 Name: "TRAVIS_BUILD_ID", 21 Desc: "The id of the current build that Travis CI uses internally.", 22 }, 23 { 24 Name: "TRAVIS_BUILD_NUMBER", 25 Desc: "The number of the current build (for example, “4”).", 26 }, 27 { 28 Name: "TRAVIS_BUILD_WEB_URL", 29 Desc: "URL to the build log.", 30 }, 31 { 32 Name: "TRAVIS_COMMIT", 33 Desc: "The commit that the current build is testing.", 34 }, 35 { 36 Name: "TRAVIS_COMMIT_MESSAGE", 37 Desc: "The commit subject and body, unwrapped.", 38 }, 39 { 40 Name: "TRAVIS_JOB_ID", 41 Desc: "The id of the current job that Travis CI uses internally.", 42 }, 43 { 44 Name: "TRAVIS_JOB_NAME", 45 Desc: "The job name if it was specified, or ''.", 46 }, 47 { 48 Name: "TRAVIS_JOB_NUMBER", 49 Desc: "The number of the current job (for example, “4.1”)", 50 }, 51 { 52 Name: "TRAVIS_JOB_WEB_URL", 53 Desc: "URL to the job log.", 54 }, 55 { 56 Name: "TRAVIS_PULL_REQUEST", 57 Desc: "The pull request number if the current job is a pull request, “false” if it’s not a pull request.", 58 }, 59 { 60 Name: "TRAVIS_PULL_REQUEST_BRANCH", 61 Desc: "The name of the branch from which the PR originated.", 62 }, 63 { 64 Name: "TRAVIS_EVENT_TYPE", 65 Desc: "Indicates how the build was triggered. One of push, pull_request, api, or cron", 66 }, 67 { 68 Name: "TRAVIS_BRANCH", 69 Desc: "The name of the build for branch builds, the name of the target branch for pull request builds or the name of the tag for tag builds.", 70 }, 71 }, 72 }