fixing build to apply to all PRs
This commit is contained in:
Родитель
6ad349d7b4
Коммит
c9555b1098
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
readonly GITHUB_ORG="${GITHUB_ORG:-CatalystCode}"
|
||||
readonly GITHUB_ORG="${GITHUB_ORG:-Azure}"
|
||||
readonly GITHUB_REPO="${GITHUB_REPO:-ibex-dashboard}"
|
||||
readonly TARGET_BRANCH="${TARGET_BRANCH:-master}"
|
||||
readonly SOURCE_BRANCH="${SOURCE_BRANCH:-ibex-version-1.0}"
|
||||
|
@ -20,12 +20,12 @@ ensure_preconditions_met() {
|
|||
log "Job is CI for a push, skipping creation of production build"
|
||||
exit 0
|
||||
fi
|
||||
if [ "${TRAVIS_BRANCH}_${TRAVIS_PULL_REQUEST_BRANCH}" != "${TARGET_BRANCH}_${SOURCE_BRANCH}" ]; then
|
||||
log "Skipping creation of production build"
|
||||
log "We only create production builds for pull requests from '${SOURCE_BRANCH}' to '${TARGET_BRANCH}'"
|
||||
log "but this pull request is from '${TRAVIS_PULL_REQUEST BRANCH}' to '${TRAVIS_BRANCH}'"
|
||||
exit 0
|
||||
fi
|
||||
# if [ "${TRAVIS_BRANCH}_${TRAVIS_PULL_REQUEST_BRANCH}" != "${TARGET_BRANCH}_${SOURCE_BRANCH}" ]; then
|
||||
# log "Skipping creation of production build"
|
||||
# log "We only create production builds for pull requests from '${SOURCE_BRANCH}' to '${TARGET_BRANCH}'"
|
||||
# log "but this pull request is from '${TRAVIS_PULL_REQUEST BRANCH}' to '${TRAVIS_BRANCH}'"
|
||||
# exit 0
|
||||
# fi
|
||||
if [ -z "${GITHUB_TOKEN}" ]; then
|
||||
log "GITHUB_TOKEN not set: won't be able to push production build"
|
||||
log "Please configure the token in .travis.yml or the Travis UI"
|
||||
|
|
Загрузка…
Ссылка в новой задаче