Skip to content
Merged
35 changes: 33 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,34 @@ steps:
commands:
- npm ci --unsafe-perm

- name: publish-diff
image: joomlaprojects/docker-images:patchtester
depends_on: [ npm ]
environment:
CMP_ARCHIVE_NAME: "build"
CMP_MASTER_FOLDER: "/reference"
CMP_SLAVE_FOLDER: "." # The directory the current repo is in
FTP_USERNAME:
from_secret: ftpusername
FTP_PASSWORD:
from_secret: ftppassword
FTP_HOSTNAME: ci.joomla.org
FTP_PORT: "21"
FTP_DEST_DIR: /artifacts
FTP_VERIFY: "false"
FTP_SECURE: "true"
BRANCH_NAME: "4.0-dev" # Current branch to check against (from repo joomla/joomla-cms)
DRONE_PULL_REQUEST: DRONE_PULL_REQUEST
commands:
- export PULL_ID=$DRONE_PULL_REQUEST
- /bin/compare.sh
volumes:
- name: reference
path: /reference
when:
branch:
- 4.0-dev

- name: rebuild-cache
image: drillster/drone-volume-cache
depends_on: [ npm ]
Expand Down Expand Up @@ -197,7 +225,7 @@ steps:
PLUGIN_SECURE: false
PLUGIN_EXCLUDE: ^\.git/$
commands:
- export PLUGIN_DEST_DIR=$PLUGIN_DEST_DIR/$DRONE_REPO/$DRONE_BRANCH/$DRONE_PULL_REQUEST_$DRONE_BUILD_NUMBER/system-tests
- export PLUGIN_DEST_DIR=$PLUGIN_DEST_DIR/$DRONE_REPO/$DRONE_BRANCH/$DRONE_PULL_REQUEST/system-tests/$DRONE_BUILD_NUMBER
- echo https://ci.joomla.org:444$PLUGIN_DEST_DIR
- /bin/upload.sh
when:
Expand Down Expand Up @@ -234,6 +262,9 @@ volumes:
- name: cache
host:
path: /tmp/cache
- name: reference
host:
path: /tmp/reference

services:
- name: mysql
Expand Down Expand Up @@ -270,6 +301,6 @@ services:

---
kind: signature
hmac: 9462caf361ab517c63d66d10ba0c934ead624ecf116828ab71ddc889f1b0a137
hmac: c88480e470d101c1cfad7145d0ca3b1d6045f4eabfe86f131d937f6955fa2cc5

...