Prepend env to avoid error 127, remove s3 branch

Using env provides the environment needed by the script provider to run make.

Removing s3 branch from the staging deployment list so that this is ready to merge.
This commit is contained in:
Ray Schamp 2016-04-21 09:36:10 -04:00
parent 5cd3998c1c
commit 39be1b2085

View file

@ -36,7 +36,20 @@ addons:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
after_success:
- if [ $TRAVIS_BRANCH == 'master' ]; then export FASTLY_SERVICE_ID=$FASTLY_SERVICE_ID_PRODUCTION S3_BUCKET_NAME=$S3_BUCKET_NAME_PRODUCTION make sync; fi;
- if [ $TRAVIS_BRANCH == 'develop' ]; then FASTLY_SERVICE_ID=$FASTLY_SERVICE_ID_STAGING S3_BUCKET_NAME=$S3_BUCKET_NAME_STAGING make sync; fi;
- if [ $TRAVIS_BRANCH == 's3' ]; then export FASTLY_SERVICE_ID=$FASTLY_SERVICE_ID_STAGING S3_BUCKET_NAME=$S3_BUCKET_NAME_STAGING make sync; fi;
deploy:
- provider: script
skip_cleanup: $SKIP_CLEANUP
script: env FASTLY_SERVICE_ID=$FASTLY_SERVICE_ID_STAGING S3_BUCKET_NAME=$S3_BUCKET_NAME_STAGING make sync
on:
repo: LLK/scratch-www
branch:
- develop
- hotfix/*
- release/*
- provider: script
skip_cleanup: $SKIP_CLEANUP
script: env FASTLY_SERVICE_ID=$FASTLY_SERVICE_ID_PRODUCTION S3_BUCKET_NAME=$S3_BUCKET_NAME_PRODUCTION make sync
on:
repo: LLK/scratch-www
branch:
- master