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.
|
# Deploying uses awscli and it uses Python.
|
||||||
# Xenial on Travis comes with Python 2 & 3 installed but 2 is default.
|
# Xenial on Travis comes with Python 2 & 3 installed but 2 is default.
|
||||||
# Ensure pip3 is installed
|
# Ensure pip3 is installed and upgraded.
|
||||||
# and make python3 and pip3 the defaults:
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get -qq update
|
- sudo apt-get -qq update
|
||||||
- sudo apt-get install python3-pip
|
- sudo apt-get install python3-pip
|
||||||
- alias python=python3
|
- sudo -H pip3 install --upgrade pip
|
||||||
- alias pip=pip3
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm test
|
- npm test
|
||||||
- 'if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then npm run build; fi'
|
- 'if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then npm run build; fi'
|
||||||
|
|
||||||
|
# Try to ensure Python 3 and pip3 get used for deployment:
|
||||||
after_success:
|
after_success:
|
||||||
- pip install --user awscli
|
- alias python=python3
|
||||||
|
- pip3 install --user awscli
|
||||||
- export PATH=$PATH:$HOME/.local/bin
|
- export PATH=$PATH:$HOME/.local/bin
|
||||||
- npm run deploy
|
- npm run deploy
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user