1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Merge pull request #167 from oceanprotocol/try-to-enforce-py3-in-travis-deploy

Try to enforce py3 & pip3 in Travis deploy
This commit is contained in:
Troy McConaghy 2019-03-11 14:57:34 +01:00 committed by GitHub
commit 2c63cf480c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -7,20 +7,18 @@ 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'
after_success:
- pip install --user awscli
- pip3 install --user awscli
- export PATH=$PATH:$HOME/.local/bin
- npm run deploy

View File

@ -11,9 +11,6 @@ SITEMAP_URL="https%3A%2F%2Fdocs.oceanprotocol.com%2Fsitemap.xml"
#
set -e;
echo "Default python (used by awscli):"
python --version
function s3sync {
aws s3 sync ./public s3://"$1" \
--cache-control public,max-age=31536000,immutable \