certbot/tests/travis-macos-setup.sh
Brad Warren 5e9a5e4daa Fix macOS tests (#6437)
* Don't try to install installed packages.

* Test with any version of python3 on macOS.

* move file and fix mode

* ignore stderr too

* remove extra set -e

* no linux failures
2018-10-23 10:20:53 +03:00

17 lines
351 B
Bash
Executable file

#!/bin/bash -e
#
# Set up the test environment for macOS on Travis.
# Install the given package with brew if it's not already installed.
brew_install() {
if ! brew list "$1" > /dev/null 2>&1; then
brew install "$1"
fi
}
brew_install augeas
brew_install python
brew_install python3
# Ensure we use python from brew.
brew link python