Created
February 7, 2017 22:53
-
-
Save leevigraham/e39f196c1780f661172eb3bb870f6a36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
echo "steps:" | |
echo " | |
- label: \":hammer: dev\" | |
command: |- | |
source .env | |
composer install --verbose --prefer-dist --optimize-autoloader --no-progress --no-interaction | |
npm install | |
./node_modules/bower/bin/bower install | |
mysql -u \$DB_USER -p\$DB_PASSWORD \$DB_NAME < craft/storage/backups/test.sql | |
bin/behat | |
" | |
if [[ "$BUILDKITE_BRANCH" == "master" && "$BUILDKITE_PULL_REQUEST_REPO" == "" ]]; then | |
echo " | |
- wait | |
- label: \":shipit: dev\" | |
command: |- | |
bin/dep deploy:feature dev --branch=\$BUILDKITE_BRANCH --revision=\$BUILDKITE_COMMIT -vv | |
- block: \":crystal_ball: Preview stage changes\" | |
branches: master | |
- label: \":thinking_face: :git: diff stage\" | |
branches: master | |
command: |- | |
bin/dep deploy:diff dev --branch=\$BUILDKITE_BRANCH --revision=\$BUILDKITE_COMMIT | |
- block: \":rocket: Deploy to stage\" | |
branches: master | |
- label: \":shipit: stage\" | |
branches: master | |
command: |- | |
bin/dep deploy stage --branch=\$BUILDKITE_BRANCH --revision=\$BUILDKITE_COMMIT -vv | |
- block: \":crystal_ball: Preview prod changes\" | |
branches: master | |
- label: \":thinking_face: :git: diff prod\" | |
branches: master | |
command: |- | |
bin/dep deploy:diff prod --branch=\$BUILDKITE_BRANCH --revision=\$BUILDKITE_COMMIT | |
- block: \":rocket: Deploy to prod\" | |
branches: master | |
- label: \":shipit: prod\" | |
branches: master | |
command: |- | |
bin/dep deploy prod --branch=\$BUILDKITE_BRANCH --revision=\$BUILDKITE_COMMIT -vv | |
" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment