mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-02 08:20:22 +01:00
Merge pull request #166 from oceanprotocol/use-newer-python-in-travis
Get Travis to use python3 and pip3
This commit is contained in:
commit
bddde7e5bd
12
.travis.yml
12
.travis.yml
@ -3,6 +3,18 @@ node_js: node
|
||||
|
||||
# will run `npm install` automatically here
|
||||
|
||||
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:
|
||||
before_install:
|
||||
- sudo apt-get -qq update
|
||||
- sudo apt-get install python3-pip
|
||||
- alias python=python3
|
||||
- alias pip=pip3
|
||||
|
||||
script:
|
||||
- npm test
|
||||
- 'if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then npm run build; fi'
|
||||
|
@ -11,6 +11,9 @@ 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 \
|
||||
|
Loading…
Reference in New Issue
Block a user