-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from pantheon-systems/bail-early-when-connect…
…ion-fails Bail early when connecting to Redis throws an Exception
- Loading branch information
Showing
3 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,33 +23,33 @@ jobs: | |
steps: | ||
- checkout | ||
- run: echo $(openssl rand -hex 8) > /tmp/WORDPRESS_ADMIN_PASSWORD | ||
- run: | | ||
echo 'export TERMINUS_ENV=ci-$CIRCLE_BUILD_NUM' >> $BASH_ENV | ||
echo 'export TERMINUS_SITE=wp-redis' >> $BASH_ENV | ||
echo 'export SITE_ENV=wp-redis.ci-$CIRCLE_BUILD_NUM' >> $BASH_ENV | ||
echo 'export WORDPRESS_ADMIN_USERNAME=pantheon' >> $BASH_ENV | ||
echo 'export [email protected]' >> $BASH_ENV | ||
echo 'export WORDPRESS_ADMIN_PASSWORD=$(cat /tmp/WORDPRESS_ADMIN_PASSWORD)' >> $BASH_ENV | ||
source $BASH_ENV | ||
- run: echo "StrictHostKeyChecking no" >> "$HOME/.ssh/config" | ||
- run: | | ||
if [ -z "$GITHUB_TOKEN" ]; then | ||
echo "GITHUB_TOKEN environment variables missing; assuming unauthenticated build" | ||
exit 0 | ||
fi | ||
echo "Setting GitHub OAuth token with suppressed ouput" | ||
{ | ||
composer config -g github-oauth.github.com $GITHUB_TOKEN | ||
} &> /dev/null | ||
- run: | | ||
if [ -z "$TERMINUS_TOKEN" ]; then | ||
echo "TERMINUS_TOKEN environment variables missing; assuming unauthenticated build" | ||
exit 0 | ||
fi | ||
composer install --prefer-dist | ||
terminus auth:login --machine-token=$TERMINUS_TOKEN | ||
- run: ./bin/behat-prepare.sh | ||
- run: ./bin/behat-test.sh --strict | ||
- run: | ||
command: ./bin/behat-cleanup.sh | ||
when: always | ||
# - run: | | ||
# echo 'export TERMINUS_ENV=ci-$CIRCLE_BUILD_NUM' >> $BASH_ENV | ||
# echo 'export TERMINUS_SITE=wp-redis' >> $BASH_ENV | ||
# echo 'export SITE_ENV=wp-redis.ci-$CIRCLE_BUILD_NUM' >> $BASH_ENV | ||
# echo 'export WORDPRESS_ADMIN_USERNAME=pantheon' >> $BASH_ENV | ||
# echo 'export [email protected]' >> $BASH_ENV | ||
# echo 'export WORDPRESS_ADMIN_PASSWORD=$(cat /tmp/WORDPRESS_ADMIN_PASSWORD)' >> $BASH_ENV | ||
# source $BASH_ENV | ||
# - run: echo "StrictHostKeyChecking no" >> "$HOME/.ssh/config" | ||
# - run: | | ||
# if [ -z "$GITHUB_TOKEN" ]; then | ||
# echo "GITHUB_TOKEN environment variables missing; assuming unauthenticated build" | ||
# exit 0 | ||
# fi | ||
# echo "Setting GitHub OAuth token with suppressed ouput" | ||
# { | ||
# composer config -g github-oauth.github.com $GITHUB_TOKEN | ||
# } &> /dev/null | ||
# - run: | | ||
# if [ -z "$TERMINUS_TOKEN" ]; then | ||
# echo "TERMINUS_TOKEN environment variables missing; assuming unauthenticated build" | ||
# exit 0 | ||
# fi | ||
# composer install --prefer-dist | ||
# terminus auth:login --machine-token=$TERMINUS_TOKEN | ||
# - run: ./bin/behat-prepare.sh | ||
# - run: ./bin/behat-test.sh --strict | ||
# - run: | ||
# command: ./bin/behat-cleanup.sh | ||
# when: always |
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
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