Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tests from travis to drone #660

Merged
merged 1 commit into from
Dec 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
206 changes: 206 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
workspace:
base: /var/www/owncloud
path: apps/activity

branches: [ master, release* ]

pipeline:
install-core:
image: owncloudci/core
version: ${OC_VERSION}
pull: true
db_type: ${DB_TYPE}
db_name: ${DB_NAME}
db_host: ${DB_TYPE}
db_username: autotest
db_password: owncloud
when:
matrix:
NEED_CORE: true

install-app:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- cd /var/www/owncloud/
- php occ a:l
- php occ a:e activity
- php occ a:e testing
- php occ a:l
- php occ config:system:set trusted_domains 1 --value=owncloud
- php occ log:manage --level 0
when:
matrix:
NEED_INSTALL_APP: true

owncloud-coding-standard:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- make test-php-style
when:
matrix:
TEST_SUITE: owncloud-coding-standard

phpunit-tests:
image: owncloudci/php:${PHP_VERSION}
pull: true
environment:
- COVERAGE=${COVERAGE}
commands:
- if [ -z "${COVERAGE}" ]; then make test-php-unit; fi
- if [ "${COVERAGE}" = "true" ]; then make test-php-unit-dbg; fi
when:
matrix:
TEST_SUITE: phpunit

js-tests:
image: owncloudci/php:${PHP_VERSION}
pull: true
commands:
- make test-js
when:
matrix:
TEST_SUITE: javascript

codecov:
image: plugins/codecov:2
secrets: [codecov_token]
pull: true
paths:
- tests/output/clover.xml
when:
matrix:
COVERAGE: true

notify:
image: plugins/slack:1
pull: true
secrets: [ slack_webhook ]
channel: builds
when:
status: [ failure, changed ]
event: [ push, tag ]

services:
mysql:
image: mysql:5.5
environment:
- MYSQL_USER=autotest
- MYSQL_PASSWORD=owncloud
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_ROOT_PASSWORD=owncloud
when:
matrix:
DB_TYPE: mysql

pgsql:
image: postgres:9.4
environment:
- POSTGRES_USER=autotest
- POSTGRES_PASSWORD=owncloud
- POSTGRES_DB=${DB_NAME}
when:
matrix:
DB_TYPE: pgsql

oci:
image: deepdiver/docker-oracle-xe-11g
environment:
- ORACLE_USER=system
- ORACLE_PASSWORD=oracle
- ORACLE_DB=${DB_NAME}
when:
matrix:
DB_TYPE: oci

matrix:
include:
# owncloud-coding-standard
- PHP_VERSION: 5.6
TEST_SUITE: owncloud-coding-standard

# Unit Tests
- PHP_VERSION: 5.6
OC_VERSION: daily-stable10-qa
TEST_SUITE: phpunit
DB_TYPE: sqlite
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true

- PHP_VERSION: 7.0
OC_VERSION: daily-stable10-qa
TEST_SUITE: phpunit
DB_TYPE: sqlite
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true
COVERAGE: true

- PHP_VERSION: 7.1
OC_VERSION: daily-stable10-qa
TEST_SUITE: phpunit
DB_TYPE: sqlite
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true
COVERAGE: true

- PHP_VERSION: 7.2
OC_VERSION: daily-stable10-qa
TEST_SUITE: phpunit
DB_TYPE: sqlite
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true
COVERAGE: true

- PHP_VERSION: 5.6
OC_VERSION: daily-stable10-qa
TEST_SUITE: phpunit
DB_TYPE: oci
DB_NAME: XE
NEED_CORE: true
NEED_INSTALL_APP: true

- PHP_VERSION: 5.6
OC_VERSION: daily-stable10-qa
TEST_SUITE: phpunit
DB_TYPE: mysql
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true

- PHP_VERSION: 5.6
OC_VERSION: daily-stable10-qa
TEST_SUITE: phpunit
DB_TYPE: pgsql
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true

- PHP_VERSION: 7.1
OC_VERSION: daily-master-qa
TEST_SUITE: phpunit
DB_TYPE: pgsql
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true
COVERAGE: true

- PHP_VERSION: 7.2
OC_VERSION: daily-master-qa
TEST_SUITE: phpunit
DB_TYPE: pgsql
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true

- PHP_VERSION: 7.2
OC_VERSION: daily-master-qa
TEST_SUITE: javascript
DB_TYPE: mysql
DB_NAME: owncloud
NEED_CORE: true
NEED_INSTALL_APP: true
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ nbproject

# Tests - auto-generated files
/tests/coverage*
/tests/clover.xml
/tests/js/node_modules
/vendor/
/tests/output/clover.xml
node_modules
vendor-bin/**/composer.lock
vendor/
/build/
tests/Unit/js/package-lock.json


# php-cs-fixer
.php_cs.cache
105 changes: 0 additions & 105 deletions .travis.yml

This file was deleted.

Loading