Skip to content

Commit

Permalink
Move tests over to CircleCI (#8)
Browse files Browse the repository at this point in the history
* Move tests over to CircleCI

* Remove travis configuration
  • Loading branch information
greg-1-anderson authored May 29, 2020
1 parent 8981685 commit 78f98a3
Show file tree
Hide file tree
Showing 10 changed files with 7,896 additions and 772 deletions.
59 changes: 59 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
defaults: &defaults
working_directory: ~/behat-drush
environment:
TZ: "/usr/share/zoneinfo/America/Los_Angeles"
TERM: dumb
PHPUNIT_ARGS: ""
PHP_SENDMAIL_PATH: /dev/null

version: 2.1
jobs:
test_72_drupal8:
<<: *defaults
docker:
- image: wodby/php:7.2
environment:
- MYSQL_HOST=127.0.0.1
- UNISH_DB_URL=mysql://root:@127.0.0.1
- image: circleci/mysql:5.7.24
steps:
- checkout
- run: cp .circleci/zz-php.ini /usr/local/etc/php/conf.d/
- run: composer install -n
- run: composer test

test_72_drush8:
<<: *defaults
docker:
- image: wodby/php:7.2
environment:
- MYSQL_HOST=127.0.0.1
- UNISH_DB_URL=mysql://root:@127.0.0.1
- image: circleci/mysql:5.7.24
steps:
- checkout
- run: cp .circleci/zz-php.ini /usr/local/etc/php/conf.d/
- run: .scenarios.lock/install drush8
- run: composer test

test_73_drupal9:
<<: *defaults
docker:
- image: wodby/php:7.3
environment:
- MYSQL_HOST=127.0.0.1
- UNISH_DB_URL=mysql://root:@127.0.0.1
- image: circleci/mysql:5.7.24
steps:
- checkout
- run: cp .circleci/zz-php.ini /usr/local/etc/php/conf.d/
- run: .scenarios.lock/install drupal9
- run: composer test

workflows:
version: 2
example-drush-extension:
jobs:
- test_72_drupal8
- test_72_drush8
- test_73_drupal9
5 changes: 5 additions & 0 deletions .circleci/zz-php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[PHP]
variables_order = GPCS
error_reporting = E_ALL & ~E_DEPRECATED
date.timezone = "UTC"
sendmail_path = "true"
1 change: 1 addition & 0 deletions .scenarios.lock/drupal9/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor
88 changes: 88 additions & 0 deletions .scenarios.lock/drupal9/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"name": "drush/example-drush-extension",
"description": "Example Drush site-wide extension",
"type": "drupal-drush",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Greg Anderson"
}
],
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"php": ">=5.6",
"consolidation/site-alias": "^3.0.1",
"consolidation/site-process": "^2.1 || ^4"
},
"require-dev": {
"drupal/core-recommended": "^9@rc",
"drupal/core": "^9@rc",
"drupal/core-composer-scaffold": "^9@rc",
"pantheon-systems/drupal-integrations": "^9",
"composer/installers": "^1.2",
"drush/drush": "^8.3.3 || ^10.2.2",
"g1a/composer-test-scenarios": "^3.0.2",
"phpunit/phpunit": "^6.5",
"symfony/filesystem": "^3.4.28",
"webflo/drupal-finder": "^1.1.0",
"webmozart/path-util": "^2.3",
"zaporylie/composer-drupal-optimizations": "^1.0.2"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"platform": {
"php": "7.3"
},
"sort-packages": true,
"vendor-dir": "../../vendor"
},
"autoload-dev": {
"psr-4": {
"TestUtils\\": "../../tests/src/"
}
},
"scripts": {
"test": "phpunit --color=always",
"drush": "drush"
},
"extra": {
"installer-paths": {
"../../sut/web/core": [
"type:drupal-core"
],
"../../sut/web/libraries/{$name}": [
"type:drupal-library"
],
"../../sut/web/modules/contrib/{$name}": [
"type:drupal-module"
],
"../../sut/web/profiles/contrib/{$name}": [
"type:drupal-profile"
],
"../../sut/web/themes/contrib/{$name}": [
"type:drupal-theme"
],
"../../drush/Commands/{$name}": [
"type:drupal-drush"
]
},
"drupal-scaffold": {
"allowed-packages": [
"pantheon-systems/drupal-integrations"
],
"locations": {
"web-root": "../../sut/web"
},
"file-mapping": {
"[project-root]/.editorconfig": false,
"[project-root]/.gitattributes": false
}
}
}
}
Loading

0 comments on commit 78f98a3

Please sign in to comment.