-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and we'll assume we can multidev off master still
- Loading branch information
1 parent
3db6025
commit 09ce8d8
Showing
2 changed files
with
7 additions
and
65 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 |
---|---|---|
|
@@ -3,8 +3,7 @@ workflows: | |
version: 2.1 | ||
main: | ||
jobs: | ||
- test-behat-74 | ||
- test-behat-83 | ||
- test-behat | ||
nightly: | ||
triggers: | ||
- schedule: | ||
|
@@ -14,10 +13,9 @@ workflows: | |
only: | ||
- master | ||
jobs: | ||
- test-behat-74 | ||
- test-behat-83 | ||
- test-behat | ||
jobs: | ||
test-behat-74: | ||
test-behat: | ||
resource_class: small | ||
working_directory: ~/pantheon-systems/wp-native-php-sessions | ||
parallelism: 1 | ||
|
@@ -41,55 +39,6 @@ jobs: | |
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 | ||
echo 'export PHP_VERSION=7.4' >> $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 | ||
terminus auth:login --machine-token=$TERMINUS_TOKEN | ||
- run: ./bin/validate-fixture-version.sh | ||
- run: ./bin/behat-prepare.sh | ||
- run: ./bin/behat-test.sh --strict | ||
- run: | ||
command: ./bin/behat-cleanup.sh | ||
when: always | ||
test-behat-83: | ||
resource_class: small | ||
working_directory: ~/pantheon-systems/wp-native-php-sessions | ||
parallelism: 1 | ||
docker: | ||
- image: quay.io/pantheon-public/build-tools-ci:8.x-php8.2 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- test-behat-dependencies-{{ checksum "composer.json" }} | ||
- run: composer install -n --prefer-dist | ||
- save_cache: | ||
key: test-behat-dependencies-{{ checksum "composer.json" }} | ||
paths: | ||
- vendor | ||
- 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-native-php-sessions' >> $BASH_ENV | ||
echo 'export SITE_ENV=wp-native-php-sessions.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 | ||
echo 'export PHP_VERSION=8.3' >> $BASH_ENV | ||
source $BASH_ENV | ||
- run: echo "StrictHostKeyChecking no" >> "$HOME/.ssh/config" | ||
- run: | | ||
|
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