Skip to content

Conversation

@jasonkarns
Copy link
Member

@jasonkarns jasonkarns commented Dec 29, 2018

Travis says that build configuration variables are available to
conditional checks, but not the build environment.

Also, environment variables from your build configuration (.travis.yml) and repository settings are available, and can be matched using env(FOO), see below.

Note that this means conditions do not have access to the build environment

So is TRAVIS_COMMIT_RANGE considered build config or build env? Who
knows!

But the main concern is that TRAVIS_COMMIT_RANGE is blank for the
initial push of a new branch. So let's just disable the verification
build for pushes entirely. (Not optimal, but that's what travis is
forcing us into.)

fixes #42

Travis says that build configuration variables are available to
conditional checks, but not the build _environment_.

> Also, environment variables from your build configuration (.travis.yml) and repository settings are available, and can be matched using env(FOO), see below.

> Note that this means conditions do not have access to the build environment

So is TRAVIS_COMMIT_RANGE considered build config or build env? Who
knows!

But the main concern is that TRAVIS_COMMIT_RANGE is blank for the
initial push of a new branch. So let's just disable the verification
build for pushes entirely. (Not optimal, but that's what travis is
forcing us into.)
@jasonkarns jasonkarns merged commit 3ce9aab into master Dec 29, 2018
@jasonkarns jasonkarns deleted the fix-travis branch December 29, 2018 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix the conditional travis stage for verifications

2 participants