mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-29 07:16:17 +01:00
Matthias Kretschmann
72fff1dbca
* change beta deployment behavior: on every pull request instead of named branch * consolidate gulp deploy tasks into one * push 100 objects in parallel to S3 * make CI scripts a bit more verbose
37 lines
798 B
Bash
Executable File
37 lines
798 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e;
|
|
|
|
##
|
|
## check for pull request against master
|
|
##
|
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
|
|
|
|
gulp deploy --beta;
|
|
|
|
|
|
##
|
|
## check for master push which is no pull request
|
|
##
|
|
elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|
|
|
gulp deploy --live;
|
|
|
|
else
|
|
|
|
echo "$(tput setaf 64)" # green
|
|
echo "---------------------------------------------"
|
|
echo " ✓ nothing to deploy "
|
|
echo "---------------------------------------------"
|
|
echo "$(tput sgr0)" # reset
|
|
|
|
fi;
|
|
|
|
echo "$(tput setaf 64)" # green
|
|
echo "---------------------------------------------"
|
|
echo " ✓ done deployment "
|
|
echo "---------------------------------------------"
|
|
echo "$(tput sgr0)" # reset
|
|
|
|
exit;
|