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)
|
2018-06-16 04:00:27 +00:00
|
|
|
- /root/.composer/vendor/bin/phpcs --report=full --encoding=utf-8 --extensions=php -p --standard=build/phpcs/Joomla .
|
2017-02-12 14:56:10 +00:00
|
|
|
- echo $(date)
|
|
|
|
|
2018-07-28 15:28:57 +00:00
|
|
|
restore-cache:
|
|
|
|
image: drillster/drone-volume-cache
|
|
|
|
restore: true
|
|
|
|
mount:
|
|
|
|
- ./node_modules
|
|
|
|
- ./libraries/vendor
|
|
|
|
volumes:
|
|
|
|
- /tmp/cache:/cache
|
|
|
|
|
2018-07-29 09:05:54 +00:00
|
|
|
prepare:
|
|
|
|
image: joomlaprojects/docker-tools: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-11-16 12:10:05 +00:00
|
|
|
- composer update joomla-projects/joomla-browser --no-progress --no-suggest
|
2018-07-29 09:05:54 +00:00
|
|
|
- npm install --unsafe-perm
|
2018-03-31 14:19:44 +00:00
|
|
|
|
2018-08-08 14:12:31 +00:00
|
|
|
rebuild-cache:
|
|
|
|
image: drillster/drone-volume-cache
|
|
|
|
rebuild: true
|
|
|
|
mount:
|
|
|
|
- ./node_modules
|
|
|
|
- ./libraries/vendor
|
|
|
|
volumes:
|
|
|
|
- /tmp/cache:/cache
|
|
|
|
|
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-12-29 10:46:22 +00:00
|
|
|
javascript-cs:
|
|
|
|
image: joomlaprojects/docker-systemtests:develop
|
|
|
|
commands:
|
|
|
|
- export DISPLAY=:0
|
|
|
|
- Xvfb -screen 0 1024x768x24 -ac +extension GLX +render -noreset > /dev/null 2>&1 &
|
|
|
|
- sleep 3
|
|
|
|
- fluxbox > /dev/null 2>&1 &
|
|
|
|
- cd /drone/src/github.com/joomla/joomla-cms && npm run lint:js
|
|
|
|
|
|
|
|
javascript-tests:
|
2018-07-22 17:59:56 +00:00
|
|
|
image: joomlaprojects/docker-systemtests:develop
|
2018-04-01 13:31:04 +00:00
|
|
|
commands:
|
|
|
|
- export DISPLAY=:0
|
|
|
|
- Xvfb -screen 0 1024x768x24 -ac +extension GLX +render -noreset > /dev/null 2>&1 &
|
|
|
|
- sleep 3
|
|
|
|
- fluxbox > /dev/null 2>&1 &
|
2018-09-16 00:50:49 +00:00
|
|
|
- npm run test
|
2018-04-01 13:31:04 +00:00
|
|
|
|
2018-04-01 14:26:37 +00:00
|
|
|
system-tests:
|
2018-07-22 17:59:56 +00:00
|
|
|
image: joomlaprojects/docker-systemtests:develop
|
2018-04-01 14:26:37 +00:00
|
|
|
commands:
|
2018-04-06 06:57:38 +00:00
|
|
|
- bash libraries/vendor/joomla/test-system/src/drone-run.sh "$(pwd)"
|
2018-04-01 14:26:37 +00:00
|
|
|
|
2018-09-05 08:28:45 +00:00
|
|
|
analysis3x:
|
2019-02-25 22:36:33 +00:00
|
|
|
image: rips/rips-cli:1.2.1
|
2018-09-05 08:28:45 +00:00
|
|
|
secrets: [rips_username, rips_password]
|
|
|
|
when:
|
|
|
|
branch: staging
|
|
|
|
commands:
|
|
|
|
- export RIPS_BASE_URI='https://api.rips.joomla.org'
|
|
|
|
- export RIPS_USERNAME=$RIPS_USERNAME
|
|
|
|
- export RIPS_PASSWORD=$RIPS_PASSWORD
|
|
|
|
- if [ $DRONE_REPO_OWNER != 'joomla' ]; then echo "The analysis check only run on the main repos"; exit 0; fi
|
2019-02-25 22:36:33 +00:00
|
|
|
- rips-cli rips:scan:start -a 1 -t 1 -R -k -p $(pwd) -t 1 -T $DRONE_REPO_OWNER-$DRONE_BRANCH || { echo "Please contact the security team at security@joomla.org"; exit 1; }
|
2018-09-05 08:28:45 +00:00
|
|
|
|
|
|
|
analysis4x:
|
2019-02-25 22:36:33 +00:00
|
|
|
image: rips/rips-cli:1.2.1
|
2018-09-05 08:28:45 +00:00
|
|
|
secrets: [rips_username, rips_password]
|
|
|
|
when:
|
|
|
|
branch: 4.0-dev
|
|
|
|
commands:
|
|
|
|
- export RIPS_BASE_URI='https://api.rips.joomla.org'
|
|
|
|
- export RIPS_USERNAME=$RIPS_USERNAME
|
|
|
|
- export RIPS_PASSWORD=$RIPS_PASSWORD
|
|
|
|
- if [ $DRONE_REPO_OWNER != 'joomla' ]; then echo "The analysis check only run on the main repos"; exit 0; fi
|
2019-02-25 22:36:33 +00:00
|
|
|
- rips-cli rips:scan:start -a 3 -t 1 -R -k -p $(pwd) -t 1 -T $DRONE_REPO_OWNER-$DRONE_BRANCH || { echo "Please contact the security team at security@joomla.org"; exit 1; }
|
2018-09-05 08:28:45 +00:00
|
|
|
|
2018-09-10 17:28:44 +00:00
|
|
|
branches:
|
|
|
|
exclude: [ l10n_* ]
|
|
|
|
|
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
|
2018-04-05 05:53:49 +00:00
|
|
|
MYSQL_DATABASE: test_joomla
|
2018-03-31 14:19:44 +00:00
|
|
|
|
|
|
|
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:
|
2018-04-06 06:57:38 +00:00
|
|
|
image: postgres
|