diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 53c9da9248..add392d5eb 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 95588e5d6c..6148ff0fc3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/tools/macos-setup-brew.sh b/tools/macos-setup-brew.sh index 5fb26f3e20..fc388de3eb 100755 --- a/tools/macos-setup-brew.sh +++ b/tools/macos-setup-brew.sh @@ -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