Tools: Add an install-test-deps option to macos-setup-brew
This commit is contained in:
parent
25f263b5cc
commit
669d47119b
|
@ -13,18 +13,8 @@ jobs:
|
|||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Install dmgbuild
|
||||
run: pip3 install dmgbuild
|
||||
- name: Install pytest
|
||||
run: pip install pytest pytest-xdist
|
||||
- name: Install biplist
|
||||
run: pip install biplist
|
||||
- name: Set up Ruby 2.6
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '2.6'
|
||||
- name: Install deps
|
||||
run: ./tools/macos-setup-brew.sh --install-optional --install-doc-deps
|
||||
run: ./tools/macos-setup-brew.sh --install-optional --install-doc-deps --install-dmg-deps --install-test-deps
|
||||
env:
|
||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||
- name: Mkdir
|
||||
|
|
|
@ -208,7 +208,7 @@ variables:
|
|||
# Make sure /usr/local/bin is first in order to work around asdf.
|
||||
- export PATH=/usr/local/bin:$PATH
|
||||
- printf "\e[0Ksection_start:%s:brew_section[collapsed=true]\r\e[0KInstalling prerequisites" "$( date +%s)"
|
||||
- ./tools/macos-setup-brew.sh --install-optional
|
||||
- ./tools/macos-setup-brew.sh --install-optional --install-test-deps
|
||||
- printf "\e[0Ksection_end:%s:brew_section\r\e[0K" "$( date +%s)"
|
||||
- export PYTEST_ADDOPTS=--skip-missing-programs=dumpcap,rawshark
|
||||
- mkdir -p ccache
|
||||
|
|
|
@ -45,6 +45,7 @@ INSTALL_OPTIONAL=0
|
|||
INSTALL_DOC_DEPS=0
|
||||
INSTALL_DMG_DEPS=0
|
||||
INSTALL_SPARKLE_DEPS=0
|
||||
INSTALL_TEST_DEPS=0
|
||||
OPTIONS=()
|
||||
for arg; do
|
||||
case $arg in
|
||||
|
@ -64,11 +65,15 @@ for arg; do
|
|||
--install-sparkle-deps)
|
||||
INSTALL_SPARKLE_DEPS=1
|
||||
;;
|
||||
--install-test-deps)
|
||||
INSTALL_TEST_DEPS=1
|
||||
;;
|
||||
--install-all)
|
||||
INSTALL_OPTIONAL=1
|
||||
INSTALL_DOC_DEPS=1
|
||||
INSTALL_DMG_DEPS=1
|
||||
INSTALL_SPARKLE_DEPS=1
|
||||
INSTALL_TEST_DEPS=1
|
||||
;;
|
||||
*)
|
||||
OPTIONS+=("$arg")
|
||||
|
@ -134,9 +139,6 @@ fi
|
|||
|
||||
install_formulae "${ACTUAL_LIST[@]}"
|
||||
|
||||
# Install python modules
|
||||
pip3 install pytest pytest-xdist
|
||||
|
||||
if [ $INSTALL_DMG_DEPS -ne 0 ] ; then
|
||||
pip3 install dmgbuild
|
||||
fi
|
||||
|
@ -145,6 +147,10 @@ if [ $INSTALL_SPARKLE_DEPS -ne 0 ] ; then
|
|||
brew cask install sparkle
|
||||
fi
|
||||
|
||||
if [ $INSTALL_TEST_DEPS -ne 0 ] ; then
|
||||
pip3 install pytest pytest-xdist
|
||||
fi
|
||||
|
||||
# Uncomment to add PNG compression utilities used by compress-pngs:
|
||||
# brew install advancecomp optipng oxipng pngcrush
|
||||
|
||||
|
|
Loading…
Reference in New Issue