From 4e2c8ccc39f9f9c2906d8eac85a1ec7c95e785fa Mon Sep 17 00:00:00 2001 From: Troy McConaghy Date: Mon, 11 Mar 2019 14:14:43 +0100 Subject: [PATCH] Try to enforce py3 & pip3 in Travis deploy --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5bab302e..c30fa821 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,20 +7,20 @@ dist: xenial # Deploying uses awscli and it uses Python. # Xenial on Travis comes with Python 2 & 3 installed but 2 is default. -# Ensure pip3 is installed -# and make python3 and pip3 the defaults: +# Ensure pip3 is installed and upgraded. before_install: - sudo apt-get -qq update - sudo apt-get install python3-pip - - alias python=python3 - - alias pip=pip3 + - sudo -H pip3 install --upgrade pip script: - npm test - 'if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then npm run build; fi' +# Try to ensure Python 3 and pip3 get used for deployment: after_success: - - pip install --user awscli + - alias python=python3 + - pip3 install --user awscli - export PATH=$PATH:$HOME/.local/bin - npm run deploy