mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Try to enforce py3 & pip3 in Travis deploy
This commit is contained in:
parent
bddde7e5bd
commit
4e2c8ccc39
10
.travis.yml
10
.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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user