Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
environment:
BASH_ENV: ~/.bashrc
TZ: "/usr/share/zoneinfo/America/Los_Angeles"
TERMINUS_SITE: d8cdn
TERMINUS_SITE: d8papc
steps:
- checkout
- restore_cache:
Expand All @@ -26,6 +26,9 @@ jobs:
- run:
name: PHP Code Sniff
command: composer codesniff
- run:
name: Unit Tests for Behat helper
command: composer phpunit
- run:
name: login-pantheon
command: |
Expand All @@ -44,7 +47,8 @@ jobs:
command: |
terminus composer ${TERMINUS_SITE}.${CIRCLE_BUILD_NUM} -- config repositories.papc vcs [email protected]:pantheon-systems/pantheon_advanced_page_cache.git
terminus composer ${TERMINUS_SITE}.${CIRCLE_BUILD_NUM} -- require drupal/pantheon_advanced_page_cache:dev-8.x-1.x#$CIRCLE_SHA1
terminus drush ${TERMINUS_SITE}.${CIRCLE_BUILD_NUM} -- dl devel
terminus drush ${TERMINUS_SITE}.${CIRCLE_BUILD_NUM} -- dl devel views_custom_cache_tag
terminus drush ${TERMINUS_SITE}.${CIRCLE_BUILD_NUM} -- en -y devel_generate views_custom_cache_tag_demo pantheon_advanced_page_cache
- run:
name: run behat
command: ./tests/behat/run-behat.sh
21 changes: 14 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,27 @@
"name": "drupal/pantheon_advanced_page_cache",
"type": "drupal-module",
"require-dev": {
"drush-ops/behat-drush-endpoint": "*",
"drupal/drupal-extension": "dev-master",
"drupal/coder": "^8.2"
"drupal/coder": "^8.2",
"phpunit/phpunit": "^6.3"
},


"scripts": {
"codesniff": "phpcs --report=full --extensions=php,module,inc,theme,info,install --standard=vendor/drupal/coder/coder_sniffer/Drupal src"
"codesniff": [
"phpcs --report=full --extensions=php,module,inc,theme,info,install --standard=vendor/drupal/coder/coder_sniffer/Drupal src",
"phpcs tests --standard=PSR2"
],
"phpunit": "phpunit tests --colors=always"
},
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}
},
"minimum-stability": "dev"
"minimum-stability": "stable",
"autoload": {
"psr-4": { "PantheonSystems\\CDNBehatHelpers\\": "tests/behat/helper_classes/" }
},
"require": {
"drupal/drupal-extension": "^3.3"
}
}
Loading