29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-16 09:02:52 +00:00
cms/.drone.yml

128 lines
4.0 KiB
YAML
Raw Normal View History

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 --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
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
- composer update joomla-projects/joomla-browser --no-progress --no-suggest
- npm install --unsafe-perm
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- ./node_modules
- ./libraries/vendor
volumes:
- /tmp/cache:/cache
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
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:
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
system-tests:
image: joomlaprojects/docker-systemtests:develop
commands:
- bash libraries/vendor/joomla/test-system/src/drone-run.sh "$(pwd)"
2018-09-05 08:28:45 +00:00
analysis3x:
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
- 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:
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
- 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_* ]
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
memcached:
image: memcached:alpine
redis:
image: redis:alpine
2017-02-12 10:40:56 +00:00
postgres:
image: postgres