mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-24 22:39:31 +00:00
[4.0] update drone YAML for drone 1.0 (#24790)
This commit is contained in:
parent
b7cf1b9b74
commit
b0a1592a94
100
.drone.yml
100
.drone.yml
|
@ -1,27 +1,31 @@
|
|||
---
|
||||
clone:
|
||||
git:
|
||||
image: plugins/git
|
||||
depth: 1
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
pipeline:
|
||||
phpcs:
|
||||
clone:
|
||||
depth: 42
|
||||
|
||||
steps:
|
||||
- name: 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 .
|
||||
- echo $(date)
|
||||
|
||||
restore-cache:
|
||||
image: drillster/drone-volume-cache
|
||||
- name: restore-cache
|
||||
image: drillster/drone-volume-cache
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- ./node_modules
|
||||
- ./libraries/vendor
|
||||
volumes:
|
||||
- /tmp/cache:/cache
|
||||
cache_key: [ DRONE_REPO_NAMESPACE, DRONE_REPO_NAME, DRONE_BRANCH, DRONE_STAGE_NUMBER ]
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
|
||||
prepare:
|
||||
- name: prepare
|
||||
image: joomlaprojects/docker-tools:develop
|
||||
commands:
|
||||
- composer install --no-progress --no-suggest
|
||||
|
@ -32,34 +36,37 @@ pipeline:
|
|||
- composer update joomla-projects/joomla-browser --no-progress --no-suggest
|
||||
- npm install --unsafe-perm
|
||||
|
||||
rebuild-cache:
|
||||
image: drillster/drone-volume-cache
|
||||
- name: rebuild-cache
|
||||
image: drillster/drone-volume-cache
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- ./node_modules
|
||||
- ./libraries/vendor
|
||||
volumes:
|
||||
- /tmp/cache:/cache
|
||||
cache_key: [ DRONE_REPO_NAMESPACE, DRONE_REPO_NAME, DRONE_BRANCH, DRONE_STAGE_NUMBER ]
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
|
||||
php70-unit:
|
||||
- name: php70-unit
|
||||
group: unit
|
||||
image: joomlaprojects/docker-php70:develop
|
||||
commands:
|
||||
- ./libraries/vendor/bin/phpunit
|
||||
|
||||
php71-unit:
|
||||
- name: php71-unit
|
||||
group: unit
|
||||
image: joomlaprojects/docker-php71:develop
|
||||
commands:
|
||||
- ./libraries/vendor/bin/phpunit
|
||||
|
||||
php72-unit:
|
||||
- name: php72-unit
|
||||
group: unit
|
||||
image: joomlaprojects/docker-php72:develop
|
||||
commands:
|
||||
- ./libraries/vendor/bin/phpunit
|
||||
|
||||
javascript-cs:
|
||||
- name: javascript-cs
|
||||
image: joomlaprojects/docker-systemtests:develop
|
||||
commands:
|
||||
- export DISPLAY=:0
|
||||
|
@ -68,7 +75,7 @@ pipeline:
|
|||
- fluxbox > /dev/null 2>&1 &
|
||||
- npm run lint:js
|
||||
|
||||
javascript-tests:
|
||||
- name: javascript-tests
|
||||
image: joomlaprojects/docker-systemtests:develop
|
||||
commands:
|
||||
- export DISPLAY=:0
|
||||
|
@ -77,45 +84,41 @@ pipeline:
|
|||
- fluxbox > /dev/null 2>&1 &
|
||||
- npm run test
|
||||
|
||||
system-tests:
|
||||
image: joomlaprojects/docker-systemtests:develop
|
||||
commands:
|
||||
- bash libraries/vendor/joomla/test-system/src/drone-run.sh "$(pwd)"
|
||||
- name: system-tests
|
||||
image: joomlaprojects/docker-systemtests:develop
|
||||
commands:
|
||||
- bash libraries/vendor/joomla/test-system/src/drone-run.sh "$(pwd)"
|
||||
|
||||
api-tests:
|
||||
- name: api-tests
|
||||
image: joomlaprojects/docker-systemtests:latest
|
||||
commands:
|
||||
- bash libraries/vendor/joomla/test-api/drone-run.sh "$(pwd)"
|
||||
|
||||
analysis3x:
|
||||
image: rips/rips-cli:1.2.1
|
||||
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; }
|
||||
|
||||
analysis4x:
|
||||
- name: analysis4x
|
||||
image: rips/rips-cli:1.2.1
|
||||
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; }
|
||||
- if [ $DRONE_REPO_NAMESPACE != '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_NAMESPACE-$DRONE_BRANCH || { echo "Please contact the security team at security@joomla.org"; exit 1; }
|
||||
environment:
|
||||
RIPS_USERNAME:
|
||||
from_secret: RIPS_USERNAME
|
||||
RIPS_PASSWORD:
|
||||
from_secret: RIPS_PASSWORD
|
||||
|
||||
branches:
|
||||
exclude: [ l10n_* ]
|
||||
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
host:
|
||||
path: /tmp/cache
|
||||
|
||||
services:
|
||||
mysql:
|
||||
- name: mysql
|
||||
image: mysql:5.7
|
||||
environment:
|
||||
MYSQL_USER: joomla_ut
|
||||
|
@ -123,16 +126,17 @@ services:
|
|||
MYSQL_ROOT_PASSWORD: joomla_ut
|
||||
MYSQL_DATABASE: test_joomla
|
||||
|
||||
memcached:
|
||||
- name: memcached
|
||||
image: memcached:alpine
|
||||
|
||||
redis:
|
||||
- name: redis
|
||||
image: redis:alpine
|
||||
|
||||
postgres:
|
||||
- name: postgres
|
||||
image: postgres
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 90faac857fd970613a3d48854424b8d7283ec015711978b537dffe9e45acd89b
|
||||
hmac: 2112baeb140bcfc7f7137fa633704ca31a88bbafacb363fa258a8a6a17b79899
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue
Block a user