diff --git a/.travis.yml b/.travis.yml index b2e55f3d4..d6ba4b389 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,11 +7,10 @@ sudo: true dist: xenial python: "3.7" env: - - | - PYENV_ROOT="$HOME/.pyenv" - PATH="$PYENV_ROOT/bin:$PATH" - PYTHON_CONFIGURE_OPTS="--enable-framework" - GOOGLE_APPLICATION_CREDENTIALS="$TRAVIS_BUILD_DIR/scripts/ci/gcp-creds.json" + global: + - PYENV_ROOT="$HOME/.pyenv" + - PATH="$PYENV_ROOT/bin:$PATH" + - GOOGLE_APPLICATION_CREDENTIALS="$TRAVIS_BUILD_DIR/scripts/ci/gcp-creds.json" # Travis doesn't support testing python on Mac yet, so we need # to workaround it by installing it directly with brew. # @@ -45,6 +44,7 @@ matrix: - PYTHON_VER=2.7.10 - CPPFLAGS="-I/usr/local/opt/openssl/include $CPPFLAGS" - LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS" + - PYTHON_CONFIGURE_OPTS="--enable-framework" - if: type = cron OR tag is present os: osx osx_image: xcode7.3 @@ -52,6 +52,7 @@ matrix: rvm: 2.4.0 env: - PYTHON_VER=3.4.3 + - PYTHON_CONFIGURE_OPTS="--enable-framework" - if: type = cron OR tag is present os: osx osx_image: xcode7.3 @@ -59,6 +60,7 @@ matrix: rvm: 2.4.0 env: - PYTHON_VER=3.5.0 + - PYTHON_CONFIGURE_OPTS="--enable-framework" before_install: - bash ./scripts/ci/before_install.sh - if [[ -n "$PYTHON_VER" ]]; then