Skip to content

Commit

Permalink
executing unit tests on diffrent php versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeutz committed Mar 31, 2018
1 parent 4c74f97 commit 9b68e2c
Showing 1 changed file with 37 additions and 13 deletions.
50 changes: 37 additions & 13 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,42 @@ pipeline:
- /root/.composer/vendor/bin/phpcs --report=full --extensions=php -p --standard=build/phpcs/Joomla .
- echo $(date)

javascript:
image: joomlaprojects/docker-systemtests:latest
initdb:
image: joomlaprojects/docker-php70:develop
commands:
- echo $(date)
- apt-get install nodejs npm
- ln -s /usr/bin/nodejs /usr/bin/node
- export DISPLAY=:0
- Xvfb -screen 0 1024x768x24 -ac +extension GLX +render -noreset > /dev/null 2>&1 &
- sleep 3
- mv -f drone-package.json package.json
- fluxbox > /dev/null 2>&1 &
- npm install
- node_modules/karma/bin/karma start karma.conf.js --single-run
- echo $(date)
- composer install

php70-unit:
group: unit
image: joomlaprojects/docker-php70:develop
commands:
- ./libraries/vendor/bin/phpunit --configuration ./libraries/vendor/joomla/test-unit/phpunit.xml.dist

php71-unit:
group: unit
image: joomlaprojects/docker-php71:develop
commands:
- ./libraries/vendor/bin/phpunit --configuration ./libraries/vendor/joomla/test-unit/phpunit.xml.dist

php72-unit:
group: unit
image: joomlaprojects/docker-php72:develop
commands:
- ./libraries/vendor/bin/phpunit --configuration ./libraries/vendor/joomla/test-unit/phpunit.xml.dist

services:
mysql:
image: mysql:5.7
environment:
MYSQL_USER: joomla_ut
MYSQL_PASSWORD: joomla_ut
MYSQL_ROOT_PASSWORD: joomla_ut

memcached:
image: memcached:alpine

redis:
image: redis:alpine

postgres:
image: postgres

0 comments on commit 9b68e2c

Please sign in to comment.