Skip to content

Instantly share code, notes, and snippets.

@patrickjahns
Last active January 18, 2018 07:59
Show Gist options
  • Save patrickjahns/3452e5c13620b56197eae1f2c621b129 to your computer and use it in GitHub Desktop.
Save patrickjahns/3452e5c13620b56197eae1f2c621b129 to your computer and use it in GitHub Desktop.
workspace:
base: /drone
path: src
branches: [master, stable10, stable9.1, stable9]
clone:
git:
image: plugins/git
depth: 1
pipeline:
restore:
image: plugins/s3-cache:1
pull: true
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
restore: true
when:
local: false
event: [push, pull_request]
composer:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- ./tests/drone/composer-install.sh
when:
event: [push, pull_request]
yarn:
image: owncloudci/nodejs:latest
pull: true
commands:
- ./tests/drone/yarn-install.sh
when:
event: [push, pull_request]
rebuild:
image: plugins/s3-cache:1
pull: true
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
rebuild: true
mount:
- lib/composer
- core/vendor
- build/node_modules
when:
local: false
event: [ push ]
flush:
image: plugins/s3-cache:1
pull: true
secrets: [ cache_s3_endpoint, cache_s3_access_key, cache_s3_secret_key ]
flush: true
flush_age: 14
when:
local: false
event: [push]
services:
postgres:
image: postgres:9.4
environment:
- POSTGRES_USER=owncloud
- POSTGRES_PASSWORD=owncloud
- POSTGRES_DB=owncloud
when:
matrix:
DB_TYPE: postgres
selenium:
image: selenium/standalone-chrome:latest
pull: true
when:
matrix:
TEST_SUITE: selenium
matrix:
include:
- PHP_VERSION: 5.6
DB_TYPE: postgres
TEST_SUITE: selenium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment