Skip to content

Commit

Permalink
8.1.4
Browse files Browse the repository at this point in the history
- Updated CircleCi Tests
  • Loading branch information
pookmish authored Jul 8, 2022
2 parents fc6cad2 + 3925862 commit f97fc78
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 52 deletions.
63 changes: 13 additions & 50 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,63 +14,37 @@ defaults: &defaults
MYSQL_ALLOW_EMPTY_PASSWORD: 1
working_directory: /var/www/html


#Jobs
code_coverage: &code_coverage
back_to_dev: &back_to_dev
<<: *defaults
steps:
- restore_cache:
keys:
- dependencies-
- checkout:
path: /var/www/test
- checkout
- run:
name: Run PHP Unit Coverage Tests
name: Back to dev
command: |
composer global require SU-SWS/stanford-caravan:dev-8.x-1.x
~/.composer/vendor/bin/sws-caravan phpunit /var/www/html --extension-dir=/var/www/test --with-coverage
- save_cache:
key: dependencies-{{ epoch }}
paths:
- .
- store_test_results:
path: /var/www/html/artifacts/phpunit
- store_artifacts:
path: /var/www/html/artifacts/phpunit/coverage
composer global require su-sws/stanford-caravan:dev-8.x-2.x
~/.composer/vendor/bin/sws-caravan back-to-dev ${CIRCLE_TAG} ${CIRCLE_WORKING_DIRECTORY}
codeception: &codeception
d9_codeception: &d9_codeception
<<: *defaults
steps:
- checkout:
path: /var/www/test
- run:
name: Run Acceptance Tests
name: Run Codeception Tests
command: |
composer global require SU-SWS/stanford-caravan:dev-8.x-1.x
~/.composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=/var/www/test
composer global require su-sws/stanford-caravan:dev-8.x-2.x
~/.composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=/var/www/test --suites=functional
- store_test_results:
path: /var/www/html/artifacts/behat
- store_artifacts:
path: /var/www/html/artifacts

back_to_dev: &back_to_dev
<<: *defaults
steps:
- checkout
- run:
name: Back to dev
command: |
composer global require SU-SWS/stanford-caravan:dev-8.x-1.x
~/.composer/vendor/bin/sws-caravan back-to-dev ${CIRCLE_TAG} ${CIRCLE_WORKING_DIRECTORY}
# Declare all of the jobs we should run.
jobs:
run-coverage:
<<: *code_coverage
run-codeception:
<<: *codeception
run-back-to-dev:
<<: *back_to_dev
run-d9-codeception:
<<: *d9_codeception

# Declare a workflow that runs all of our jobs in parallel.
workflows:
Expand All @@ -85,18 +59,7 @@ workflows:
branches:
ignore:
- /.*/
weekly:
jobs:
- run-coverage
- run-codeception
triggers:
- schedule:
cron: "0 0 * * 0"
filters:
branches:
only:
- 8.x-1.x
tests:
jobs:
- run-coverage
- run-codeception
- run-d9-codeception:
context: github-auth
59 changes: 59 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: PHPUnit and Acceptance Tests
on: [push]
jobs:
phpunit:
name: PHPUnit Coverage Tests
runs-on: ubuntu-latest
container:
image: pookmish/drupal8ci:php8
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_ROOT_PASSWORD: drupal
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
with:
path: project
- name: Build project
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
run: |
composer global require su-sws/stanford-caravan:dev-8.x-2.x
~/.composer/vendor/bin/sws-caravan phpunit /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --with-coverage
acceptance:
name: Codeception Acceptance Tests
runs-on: ubuntu-latest
env:
DRUPAL_DATABASE_NAME: drupal
DRUPAL_DATABASE_USERNAME: drupal
DRUPAL_DATABASE_PASSWORD: drupal
DRUPAL_DATABASE_HOST: mysql
container:
image: pookmish/drupal8ci:php8
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_ROOT_PASSWORD: drupal
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
with:
path: project
- name: Run tests
run: |
composer global require su-sws/stanford-caravan:dev-8.x-2.x
~/.composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --suites=acceptance
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Stanford Image Styles


8.1.4
--------------------------------------------------------------------------------
_Release Date: 2022-07-08_

- Updated CircleCi Tests

8.x-1.2
--------------------------------------------------------------------------------
_Release Date: 2021-04-09_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: Provides an admin page to view a preview of all image styles after
core: 8.x
core_version_requirement: ^8 || ^9
package: Stanford
version: 8.x-1.3
version: 8.x-1.4
dependencies:
- stanford_image_styles:stanford_image_styles
2 changes: 1 addition & 1 deletion stanford_image_styles.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: module
description: 'Provides Image Styles'
core_version_requirement: ^8 || ^9
package: Stanford
version: 8.x-1.3
version: 8.x-1.4
dependencies:
- drupal:image
- drupal:responsive_image
Expand Down

0 comments on commit f97fc78

Please sign in to comment.