Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
41ec6d4
Circle 2.0 config
stevector Jun 29, 2017
7871605
terminus composer plugin fix
stevector Jun 29, 2017
df303fc
adding Dockerfile
stevector Jun 29, 2017
5a299fd
whitespace change
stevector Jun 29, 2017
727b934
changing parent
stevector Jun 29, 2017
f255e9c
using dockerfile
stevector Jun 29, 2017
65c85e8
using dockerfile
stevector Jun 29, 2017
495ac31
using terminus directly
stevector Jun 29, 2017
ebbef51
Trying to make the multidev
stevector Jun 29, 2017
ad0f9b5
Trying to make the multidev
stevector Jun 29, 2017
6bc193b
whitespace
stevector Jun 29, 2017
4c627bc
fixing multidev creation
stevector Jun 29, 2017
a60bc58
multi fix
stevector Jun 29, 2017
b8aa796
multi fix
stevector Jun 29, 2017
9f0653d
StrictHostKeyChecking no
stevector Jun 29, 2017
f77b0fc
StrictHostKeyChecking no
stevector Jun 29, 2017
66bfcc7
StrictHostKeyChecking no
stevector Jun 29, 2017
a2efd2e
site install
stevector Jun 29, 2017
6b7233b
Adding composer install
stevector Jul 7, 2017
ca824d3
debugging composer install
stevector Jul 7, 2017
6032f22
debugging composer install
stevector Jul 7, 2017
2f9bc5e
Adding checkout step
stevector Jul 7, 2017
2345a7f
adding behat-pantheon.yml
stevector Jul 7, 2017
bdf66cb
Set minimum stability
stevector Jul 7, 2017
6d52568
PHPCS
stevector Jul 7, 2017
353507c
node feature
stevector Jul 7, 2017
fa9dcef
PHPCS
stevector Jul 7, 2017
70dc6ad
gitignore
stevector Jul 7, 2017
4cb680f
code sniff fix
stevector Jul 7, 2017
74ae49c
Adding composer.lock
stevector Jul 7, 2017
1361679
code sniff fix
stevector Jul 7, 2017
b69abb3
Code sniff fixes
stevector Jul 7, 2017
54206b2
composer cache
stevector Jul 7, 2017
64015bd
ci fix
stevector Jul 7, 2017
a52650e
TERMINUS_ENV variable
stevector Jul 7, 2017
35c2848
node feature file
stevector Jul 7, 2017
ebb9b4f
Revert "TERMINUS_ENV variable"
stevector Jul 7, 2017
5459d33
run behat
stevector Jul 7, 2017
a6d5d8b
circle workflow section
stevector Jul 7, 2017
ff1a8a3
build and test
stevector Jul 7, 2017
604d1b4
todo
stevector Jul 7, 2017
52bbb11
behat script fix
stevector Jul 7, 2017
5b04a94
drush test
stevector Jul 7, 2017
3ee0f2d
drush in Dockerfile
stevector Jul 7, 2017
9cebe2d
cleanup
stevector Jul 7, 2017
8a32365
whitespace
stevector Jul 7, 2017
7b1b40e
different drush install mechanism
stevector Jul 7, 2017
a54d98a
drush fix
stevector Jul 7, 2017
ccd2bd1
move drupal/coder to require-dev
stevector Jul 17, 2017
c8e8697
composer.lock
stevector Jul 17, 2017
3b97b04
download devel module too to get devel_generate
stevector Jul 18, 2017
e655fa4
Updating gitignore
stevector Jul 19, 2017
0d3bfdf
Merge branch 'circle-setup' of github.com:pantheon-systems/pantheon_a…
stevector Jul 19, 2017
c4b2fd1
adding start of views_custom_cache_tag test. [ci skip]
stevector Aug 2, 2017
a1d7836
adding start of views_custom_cache_tag test. [ci skip]
stevector Aug 2, 2017
dd32de4
adding start of views_custom_cache_tag test. [ci skip]
stevector Aug 3, 2017
c71a5ab
Age wrangling
stevector Aug 10, 2017
b9e259b
Adding phpunit
stevector Aug 10, 2017
17c53ce
Adding files for tests
stevector Aug 10, 2017
c2515cb
tracking response headers
stevector Aug 10, 2017
b6bcc01
tracking response headers
stevector Aug 10, 2017
69951bf
working on age tracking
stevector Aug 11, 2017
50a5a1a
Fixing tracker test
stevector Aug 11, 2017
fb4ad8b
ageTracker cleanup
stevector Aug 11, 2017
edb6d25
renaming files
stevector Aug 11, 2017
b985e0e
Behat tests running
stevector Aug 11, 2017
b5b1225
Test cleanup
stevector Aug 11, 2017
ae06f29
Test cleanup
stevector Aug 11, 2017
99c3977
Forcing version lower
stevector Aug 11, 2017
5371122
Changing site name
stevector Aug 11, 2017
45d3f4a
test cleanup
stevector Aug 11, 2017
d353902
Behat test fixes
stevector Aug 11, 2017
b4484ef
enable the module before testing
stevector Aug 11, 2017
3898221
Cleanup
stevector Aug 11, 2017
fe3c6a6
Composer clean
stevector Aug 11, 2017
6627d57
Composer clean
stevector Aug 11, 2017
6131163
Whitespace
stevector Aug 11, 2017
7b2db77
PSR2 in tests
stevector Aug 11, 2017
807dc52
phpcs
stevector Aug 11, 2017
1c8ad6a
Moving classes around
stevector Aug 11, 2017
db68a61
Add unit test
stevector Aug 11, 2017
0090e98
Merge pull request #4 from pantheon-systems/circle--views-cache--unit…
stevector Aug 11, 2017
f1e4d04
deleting node.feature
stevector Aug 11, 2017
73946f7
cleanup
stevector Aug 11, 2017
9ce389c
todo comments
stevector Aug 11, 2017
4f50c71
Merge remote-tracking branch 'origin/8.x-1.x' into circle-setup [ci s…
stevector Aug 11, 2017
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
54 changes: 54 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
version: 2
# https://circleci.com/docs/configuration#machine
jobs:
# @todo, separate build and test phases.
build:
docker:
- image: stevector/pantheon_advanced_page_cache
working_directory: ~/pantheon_advanced_page_cache
environment:
BASH_ENV: ~/.bashrc
TZ: "/usr/share/zoneinfo/America/Los_Angeles"
TERMINUS_SITE: d8papc
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "composer.lock" }}
- run:
name: Composer install
command: |
composer install
drush help
- save_cache:
key: dependency-cache-{{ checksum "composer.lock" }}
paths:
- ~/.composer/cache
- run:
name: PHP Code Sniff
command: composer codesniff
- run:
name: Unit Tests for Behat helper
command: composer phpunit
- run:
name: login-pantheon
command: |
terminus auth:login -n --machine-token="$TERMINUS_TOKEN"
- run:
name: make-multidev
command: |
touch $HOME/.ssh/config
echo "StrictHostKeyChecking no" >> "$HOME/.ssh/config"
terminus env:create $TERMINUS_SITE.dev ${CIRCLE_BUILD_NUM}
terminus connection:set ${TERMINUS_SITE}.${CIRCLE_BUILD_NUM} sftp
terminus drush ${TERMINUS_SITE}.${CIRCLE_BUILD_NUM} -- site-install -y
terminus drush ${TERMINUS_SITE}.${CIRCLE_BUILD_NUM} -- cset system.performance cache.page.max_age 600 -y
- run:
name: Composer require
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 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
12 changes: 12 additions & 0 deletions .circleci/images/primary/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM drupaldocker/php:7.0-cli

RUN git clone https://github.com/pantheon-systems/terminus.git ~/terminus
RUN cd ~/terminus && composer install
RUN ln -s ~/terminus/bin/terminus /usr/local/bin/terminus
RUN mkdir -p ~/.terminus/plugins
RUN composer create-project -n -d ~/.terminus/plugins pantheon-systems/terminus-composer-plugin:^1

# Why doesn't the drupaldocker/php image have drush?
RUN git clone https://github.com/drush-ops/drush.git ~/drush
RUN cd ~/drush && git checkout 8.x && composer install
RUN ln -s ~/drush/drush /usr/local/bin/drush
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/drush/behat-drush-endpoint
/vendor

20 changes: 16 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,27 @@
"name": "drupal/pantheon_advanced_page_cache",
"type": "drupal-module",
"require-dev": {
"drupal/coder": "2.0-beta1",
"squizlabs/php_codesniffer": "2.0.*@dev",
"drush-ops/behat-drush-endpoint": "*",
"drupal/drupal-extension": "dev-master"
"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",
"phpcs tests --standard=PSR2"
],
"phpunit": "phpunit tests --colors=always"
},
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}
},
"minimum-stability": "stable",
"autoload": {
"psr-4": { "PantheonSystems\\CDNBehatHelpers\\": "tests/behat/helper_classes/" }
},
"require": {
"drupal/drupal-extension": "^3.3"
}
}
Loading