Skip to content

Commit

Permalink
Check $CI env variable when setting up paths
Browse files Browse the repository at this point in the history
This improves compatibility across CI providers
  • Loading branch information
fniephaus committed Feb 15, 2021
1 parent 5074982 commit 37d8a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env_vars
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if [[ -z "${SMALLTALK_CI_HOME:-}" ]]; then
fi

export SMALLTALK_CI_BUILD_BASE="${SMALLTALK_CI_HOME}/_builds"
if [[ -z "${TRAVIS:-${APPVEYOR:-${GITHUB_ACTIONS:-}}}" ]]; then
if [[ -z "${TRAVIS:-${APPVEYOR:-${GITHUB_ACTIONS:-${CI:-}}}}" ]]; then
export SMALLTALK_CI_BUILD="${SMALLTALK_CI_BUILD_BASE}/$(date "+%Y_%m_%d_%H_%M_%S")"
else
export SMALLTALK_CI_BUILD="${SMALLTALK_CI_BUILD_BASE}"
Expand Down

0 comments on commit 37d8a3f

Please sign in to comment.