diff --git a/.travis.yml b/.travis.yml index 4b94355..a3313e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,17 +9,12 @@ cache: before_install: - nvm install 9 + - pip install --user awscli + - export PATH=$PATH:$HOME/.local/bin before_script: "_ci/setup.sh" script: "_ci/build.sh" after_success: "_ci/deploy.sh" -# deploy: -# skip_cleanup: true -# provider: script -# script: "_ci/deploy.sh" -# on: -# all_branches: true - notifications: email: false diff --git a/_ci/deploy.sh b/_ci/deploy.sh index 318e978..9729121 100755 --- a/_ci/deploy.sh +++ b/_ci/deploy.sh @@ -7,7 +7,8 @@ set -e; ## if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then - gulp deploy --beta; + #gulp deploy --beta; + aws s3 sync ./_dist s3://beta.bigchaindb.com --delete --acl public-read --sse ## @@ -15,7 +16,8 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; th ## elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then - gulp deploy --live; + #gulp deploy --live; + aws s3 sync ./_dist s3://www.bigchaindb.com --delete --acl public-read --sse else