diff --git a/.travis/dispatch.sh b/.travis/dispatch.sh index 374c8f10..85f9f425 100755 --- a/.travis/dispatch.sh +++ b/.travis/dispatch.sh @@ -69,10 +69,6 @@ setup_test_venv() { fi travis_fold_start 'test_venv.install_python3' \ 'Setting up Python 3 virtualenv for testing' - if [[ "${SALT_NODE_ID}" =~ servo-mac.* ]]; then - brew update - brew upgrade python - fi # Use the system Python 3 to make it easy to run tests on fresh hosts # Make sure dependencies are installed (like `python3-venv` on Debian derivatives) salt_call --retcode-passthrough state.sls python @@ -99,6 +95,10 @@ if (( EUID != 0 )); then SUDO="sudo" fi +if [[ "${SALT_NODE_ID}" =~ servo-mac.* ]]; then + brew update + brew upgrade python +fi if [[ "${SALT_NODE_ID}" == "test" ]]; then # Run test suite separately for parallelism