mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-16 16:19:48 -05:00
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:
parent
5cd3998c1c
commit
39be1b2085
1 changed files with 17 additions and 4 deletions
21
.travis.yml
21
.travis.yml
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue