Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Commit

Permalink
OPENEUROPA-1715: Run the installation on drone.
Browse files Browse the repository at this point in the history
  • Loading branch information
voidtek committed Mar 12, 2019
1 parent 200cacb commit 8d86572
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
web:
image: fpfis/httpd-php-dev:${PHP_VERSION=7.1}
environment:
- DOCUMENT_ROOT=/test/openeuropa-site
- DOCUMENT_ROOT=/test/openeuropa-site-test
mysql:
image: percona/percona-server:5.6
environment:
Expand All @@ -25,33 +25,30 @@ pipeline:
volumes:
- /cache:/cache
commands:
- composer create-project --repository-url=packages.json --ansi --no-progress --no-interaction openeuropa/drupal-site-template /test/openeuropa-site-test
- composer create-project --repository-url=packages.json --ansi --no-progress --no-interaction openeuropa/drupal-site-template openeuropa-site-test

# Install the drupal site.
site-install:
image: fpfis/httpd-php-dev:7.1
environment:
- DOCUMENT_ROOT=/test/openeuropa-site-test
commands:
- cd openeuropa-site-test
- ./vendor/bin/run drupal-dev:site-setup
- ./vendor/bin/run drupal:site-install

# Run grumphp tests.
test-grumphp:
group: test
image: fpfis/httpd-php-dev:${PHP_VERSION=7.1}
environment:
- DOCUMENT_ROOT=/test/openeuropa-site-test
commands:
- cd openeuropa-site-test
- ./vendor/bin/grumphp run

# Run behat tests.
test-behat:
group: test
image: fpfis/httpd-php-dev:${PHP_VERSION=7.1}
environment:
- DOCUMENT_ROOT=/test/openeuropa-site-test
commands:
- cd openeuropa-site-test
- ./vendor/bin/behat --strict

matrix:
Expand Down

0 comments on commit 8d86572

Please sign in to comment.