diff options
Diffstat (limited to 'tests/travis-macos-setup.sh')
-rwxr-xr-x | tests/travis-macos-setup.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/travis-macos-setup.sh b/tests/travis-macos-setup.sh new file mode 100755 index 000000000..bf72f26a5 --- /dev/null +++ b/tests/travis-macos-setup.sh @@ -0,0 +1,17 @@ +#!/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 |