mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Don't worry about Python version for Travis deploy
This commit is contained in:
parent
b78d5f3142
commit
cef2568598
@ -17,10 +17,7 @@ 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.
|
|
||||||
# Note that "alias" commands do not work in .travis.yml
|
|
||||||
after_success:
|
after_success:
|
||||||
- pyenv global 3.6
|
|
||||||
- pip3 install --user awscli
|
- pip3 install --user awscli
|
||||||
- export PATH=$PATH:$HOME/.local/bin
|
- export PATH=$PATH:$HOME/.local/bin
|
||||||
- npm run deploy
|
- npm run deploy
|
||||||
|
@ -11,9 +11,6 @@ SITEMAP_URL="https%3A%2F%2Fdocs.oceanprotocol.com%2Fsitemap.xml"
|
|||||||
#
|
#
|
||||||
set -e;
|
set -e;
|
||||||
|
|
||||||
echo "Default python (used by awscli):"
|
|
||||||
python --version
|
|
||||||
|
|
||||||
function s3sync {
|
function s3sync {
|
||||||
aws s3 sync ./public s3://"$1" \
|
aws s3 sync ./public s3://"$1" \
|
||||||
--cache-control public,max-age=31536000,immutable \
|
--cache-control public,max-age=31536000,immutable \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user