2017-02-12 10:40:56 +00:00
|
|
|
pipeline:
|
2017-02-12 13:32:55 +00:00
|
|
|
clone:
|
|
|
|
image: plugins/git
|
|
|
|
depth: 1
|
|
|
|
|
2017-02-12 14:56:10 +00:00
|
|
|
phpcs:
|
|
|
|
image: joomlaprojects/docker-phpcs
|
|
|
|
commands:
|
|
|
|
- echo $(date)
|
|
|
|
- /root/.composer/vendor/bin/phpcs --report=full --extensions=php -p --standard=build/phpcs/Joomla .
|
|
|
|
- echo $(date)
|
|
|
|
|
2018-03-31 14:19:44 +00:00
|
|
|
initdb:
|
|
|
|
image: joomlaprojects/docker-php70:develop
|
2017-02-12 10:40:56 +00:00
|
|
|
commands:
|
2018-04-02 17:17:42 +00:00
|
|
|
- composer install --no-progress --no-suggest
|
2018-04-02 18:14:44 +00:00
|
|
|
# needed for unit testing
|
2018-04-02 17:17:42 +00:00
|
|
|
- composer update joomla/test-unit --no-progress --no-suggest
|
2018-04-02 18:14:44 +00:00
|
|
|
# needed for system testing
|
2018-04-02 17:17:42 +00:00
|
|
|
- composer update joomla/test-system --no-progress --no-suggest
|
2018-04-02 18:14:44 +00:00
|
|
|
- composer update joomla-projects/selenium-server-standalone --no-progress --no-suggest
|
2018-03-31 14:19:44 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-04-01 13:31:04 +00:00
|
|
|
javascript:
|
|
|
|
image: joomlaprojects/docker-systemtests:latest
|
|
|
|
commands:
|
|
|
|
- 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 node_modules/joomla-javascript-tests/src/karma.conf.js --single-run
|
|
|
|
|
2018-04-01 14:26:37 +00:00
|
|
|
system-tests:
|
|
|
|
image: joomlaprojects/docker-systemtests:latest
|
|
|
|
commands:
|
|
|
|
- apache2ctl -D FOREGROUND &
|
|
|
|
- google-chrome --version
|
|
|
|
- chmod 755 libraries/vendor/joomla-projects/selenium-server-standalone/bin/webdrivers/chrome/linux/chromedriver
|
|
|
|
- mv libraries/vendor/joomla/test-system/src/acceptance.suite.dist.yml libraries/vendor/joomla/test-system/src/acceptance.suite.yml
|
|
|
|
- libraries/vendor/bin/robo run:tests
|
|
|
|
|
2018-03-31 14:19:44 +00:00
|
|
|
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
|
2017-02-12 10:40:56 +00:00
|
|
|
|
2018-03-31 14:19:44 +00:00
|
|
|
postgres:
|
|
|
|
image: postgres
|