Used Gatling with Gradle - http://brokenrhythm.blog/gradle-gatling-springboot-automation
And here's the sample drone.yml file
#Pipeline file for project
pipeline:
load-test:
commands:
- "./gradlew testLoad"
image: "java:8"
zipping:
image: ubuntu
when:
status: [ failure,success ]
commands:
- "cp -r path/to/workspace/build/gatling-results/* /test-results"
- "tar -czf gatling-result.tar.gz /test-results/*"
email:
when:
status: [ failure,success ] #replace with [failure,changed] as we dont want to fill inbox with attachments
image: drillster/drone-email
from: drone-noreply@XXXXX.com
host: smtp.XXXX.com
port: 25
skip_verify: true
subject: >
{{ repo.owner }}/{{ repo.name }}: {{ build.status }}
recipients: [ user@email.com ]
attachment: path/to/workspace/gatling-result.tar.gz