From 27d4c78cedddbe91877d1a7d02de0734cdfb1fa9 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Fri, 4 Nov 2016 13:51:14 -0700 Subject: [PATCH 1/2] Run Drupal unit tests on Pantheon site. --- circle.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/circle.yml b/circle.yml index edd8f46..3f7f14e 100644 --- a/circle.yml +++ b/circle.yml @@ -27,17 +27,18 @@ dependencies: override: - composer global require "hirak/prestissimo:^0.3" - composer global require "consolidation/cgr" - # - cgr "pantheon-systems/terminus:^0.13.3" - - cgr "pantheon-systems/terminus:0.12.0" + - cgr "pantheon-systems/terminus:~0.13" - cgr "drush/drush:~8" - composer install + - mkdir -p ~/terminus/plugins; cd ~/terminus/plugins && git clone git@github.com:greg-1-anderson/terminus-composer.git post: - terminus auth login --machine-token=$TERMINUS_TOKEN - ./scripts/delete-old-multidevs -test: - override: - terminus site create-env --to-env=$TERMINUS_ENV --from-env=dev - terminus site set-connection-mode --mode=sftp +test: + override: + - terminus composer 'exec --working-dir=web/core "../../vendor/bin/phpunit --testsuite=unit --exclude-group Composer,DependencyInjection,PageCache"' # Note that the behat-drush-endpoint has already been added to the dev environment of the test site. - ./scripts/run-behat # Note that if we do not delete our multidev environment here, then the From 78022b6fe0bdfcda39980989c403c15525919cd3 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Fri, 4 Nov 2016 14:07:19 -0700 Subject: [PATCH 2/2] Remove reference to web directory, as the document root is not relocated here. --- circle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 3f7f14e..f2a7d7a 100644 --- a/circle.yml +++ b/circle.yml @@ -38,7 +38,7 @@ dependencies: - terminus site set-connection-mode --mode=sftp test: override: - - terminus composer 'exec --working-dir=web/core "../../vendor/bin/phpunit --testsuite=unit --exclude-group Composer,DependencyInjection,PageCache"' + - terminus composer 'exec --working-dir=core "../vendor/bin/phpunit --testsuite=unit --exclude-group Composer,DependencyInjection,PageCache"' # Note that the behat-drush-endpoint has already been added to the dev environment of the test site. - ./scripts/run-behat # Note that if we do not delete our multidev environment here, then the