Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,17 @@ then
echo '# END SECTION'
fi

echo "# BEGIN SECTION: check if ${PROJECT_FORMULA} is HEAD formula"
# Install with --HEAD if formula lacks a stable URL
HEAD_FLAG=""
if brew ruby -e "exit '${PROJECT_FORMULA}'.f.stable.nil?"; then
HEAD_FLAG="--HEAD"
fi
echo '# END SECTION'

echo "# BEGIN SECTION: install ${PROJECT_FORMULA} dependencies"
# Process the package dependencies
brew install ${PROJECT_FORMULA} ${PROJECT_ARGS} --only-dependencies
brew install ${PROJECT_FORMULA} ${PROJECT_ARGS} --only-dependencies ${HEAD_FLAG}
# the following is needed to install :build dependencies of a formula
brew install $(brew deps --1 --include-build ${PROJECT_FORMULA})

Expand Down
10 changes: 9 additions & 1 deletion jenkins-scripts/lib/project-install-homebrew.bash
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,16 @@ then
echo '# END SECTION'
fi

echo "# BEGIN SECTION: check if ${BOTTLE_NAME} is HEAD formula"
# Install with --HEAD if formula lacks a stable URL
HEAD_FLAG=""
if brew ruby -e "exit '${BOTTLE_NAME}'.f.stable.nil?"; then
HEAD_FLAG="--HEAD"
fi
echo '# END SECTION'

echo "# BEGIN SECTION: install ${BOTTLE_NAME}"
brew install --include-test ${BOTTLE_NAME}
brew install --include-test ${BOTTLE_NAME} ${HEAD_FLAG}

# add X11 path so glxinfo can be found
export PATH="${PATH}:/opt/X11/bin"
Expand Down