kopia lustrzana https://github.com/nextcloud/social
commit
12404d7eaa
219
.drone.yml
219
.drone.yml
|
@ -1,143 +1,122 @@
|
||||||
clone:
|
kind: pipeline
|
||||||
git:
|
name: compatibility
|
||||||
image: plugins/git
|
steps:
|
||||||
depth: 1
|
- name: compatibility
|
||||||
|
|
||||||
pipeline:
|
|
||||||
check-app-compatbility:
|
|
||||||
image: nextcloudci/php7.0:php7.0-17
|
image: nextcloudci/php7.0:php7.0-17
|
||||||
environment:
|
environment:
|
||||||
- APP_NAME=social
|
APP_NAME: social
|
||||||
- CORE_BRANCH=stable15
|
CORE_BRANCH: stable15
|
||||||
- DB=sqlite
|
DB: sqlite
|
||||||
commands:
|
commands:
|
||||||
# Pre-setup steps
|
- composer install
|
||||||
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
- bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH $DB
|
||||||
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
|
||||||
- cd ../server
|
- cd ../server
|
||||||
# Code checker
|
|
||||||
- ./occ app:check-code $APP_NAME -c strong-comparison
|
- ./occ app:check-code $APP_NAME -c strong-comparison
|
||||||
- ./occ app:check-code $APP_NAME -c deprecation
|
- ./occ app:check-code $APP_NAME -c deprecation
|
||||||
when:
|
trigger:
|
||||||
matrix:
|
branch:
|
||||||
TESTS: check-app-compatbility
|
- master
|
||||||
syntax-php7.0:
|
event:
|
||||||
|
- pull_request
|
||||||
|
- push
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: syntax
|
||||||
|
steps:
|
||||||
|
- name: syntax-php7.0
|
||||||
image: nextcloudci/php7.0:php7.0-17
|
image: nextcloudci/php7.0:php7.0-17
|
||||||
environment:
|
|
||||||
- APP_NAME=social
|
|
||||||
- CORE_BRANCH=stable15
|
|
||||||
- DB=sqlite
|
|
||||||
commands:
|
commands:
|
||||||
- composer install
|
- composer install
|
||||||
- ./vendor/bin/parallel-lint --exclude ./vendor/ .
|
- ./vendor/bin/parallel-lint --exclude ./vendor/ .
|
||||||
when:
|
- name: syntax-php7.1
|
||||||
matrix:
|
|
||||||
TESTS: syntax-php7.0
|
|
||||||
syntax-php7.1:
|
|
||||||
image: nextcloudci/php7.1:php7.1-15
|
image: nextcloudci/php7.1:php7.1-15
|
||||||
environment:
|
|
||||||
- APP_NAME=social
|
|
||||||
- CORE_BRANCH=stable15
|
|
||||||
- DB=sqlite
|
|
||||||
commands:
|
commands:
|
||||||
- composer install
|
- composer install
|
||||||
- ./vendor/bin/parallel-lint --exclude ./vendor/ .
|
- ./vendor/bin/parallel-lint --exclude ./vendor/ .
|
||||||
when:
|
- name: syntax-php7.2
|
||||||
matrix:
|
|
||||||
TESTS: syntax-php7.1
|
|
||||||
syntax-php7.2:
|
|
||||||
image: nextcloudci/php7.2:php7.2-9
|
image: nextcloudci/php7.2:php7.2-9
|
||||||
environment:
|
|
||||||
- APP_NAME=social
|
|
||||||
- CORE_BRANCH=stable15
|
|
||||||
- DB=sqlite
|
|
||||||
commands:
|
commands:
|
||||||
- composer install
|
- composer install
|
||||||
- ./vendor/bin/parallel-lint --exclude ./vendor/ .
|
- ./vendor/bin/parallel-lint --exclude ./vendor/ .
|
||||||
when:
|
- name: syntax-php7.3
|
||||||
matrix:
|
|
||||||
TESTS: syntax-php7.2
|
|
||||||
syntax-php7.3:
|
|
||||||
image: nextcloudci/php7.3:php7.3-2
|
image: nextcloudci/php7.3:php7.3-2
|
||||||
environment:
|
|
||||||
- APP_NAME=social
|
|
||||||
- CORE_BRANCH=stable15
|
|
||||||
- DB=sqlite
|
|
||||||
commands:
|
commands:
|
||||||
- composer install
|
- composer install
|
||||||
- ./vendor/bin/parallel-lint --exclude ./vendor/ .
|
- ./vendor/bin/parallel-lint --exclude ./vendor/ .
|
||||||
when:
|
trigger:
|
||||||
matrix:
|
branch:
|
||||||
TESTS: syntax-php7.3
|
- master
|
||||||
php7.1:
|
event:
|
||||||
image: nextcloudci/php7.1:php7.1-16
|
- pull_request
|
||||||
environment:
|
- push
|
||||||
- APP_NAME=social
|
---
|
||||||
- CORE_BRANCH=stable15
|
kind: pipeline
|
||||||
commands:
|
name: php7.1-sqlite
|
||||||
- bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH ${DB}
|
steps:
|
||||||
- cd ../server/apps/$APP_NAME
|
- name: php7.1
|
||||||
- composer install
|
image: nextcloudci/php7.1:php7.1-16
|
||||||
- phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml
|
environment:
|
||||||
when:
|
APP_NAME: social
|
||||||
matrix:
|
CORE_BRANCH: stable15
|
||||||
TESTS: php7.1
|
DB: sqlite
|
||||||
|
commands:
|
||||||
eslint:
|
- bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH $DB
|
||||||
image: node:lts-alpine
|
- cd ../server/apps/$APP_NAME
|
||||||
commands:
|
- composer install
|
||||||
- npm install
|
- phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml
|
||||||
- npm run lint
|
trigger:
|
||||||
when:
|
branch:
|
||||||
matrix:
|
- master
|
||||||
TESTS: eslint
|
event:
|
||||||
vue-build:
|
- pull_request
|
||||||
image: node:lts-alpine
|
- push
|
||||||
commands:
|
---
|
||||||
- npm install
|
kind: pipeline
|
||||||
- npm run build
|
name: php7.1-mysql
|
||||||
when:
|
steps:
|
||||||
matrix:
|
- name: php7.1
|
||||||
TESTS: vue-build
|
image: nextcloudci/php7.1:php7.1-16
|
||||||
|
environment:
|
||||||
|
APP_NAME: social
|
||||||
|
CORE_BRANCH: stable15
|
||||||
|
DB: mysql
|
||||||
|
commands:
|
||||||
|
- bash ./tests/drone-server-setup.sh $APP_NAME $CORE_BRANCH $DB
|
||||||
|
- cd ../server/apps/$APP_NAME
|
||||||
|
- composer install
|
||||||
|
- phpunit -c tests/phpunit.xml --coverage-clover build/php-unit.coverage.xml
|
||||||
services:
|
services:
|
||||||
mysql:
|
- name: mysql
|
||||||
image: mysql:5.7.22
|
image: mysql:5.7.22
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=owncloud
|
MYSQL_ROOT_PASSWORD: owncloud
|
||||||
- MYSQL_USER=oc_autotest
|
MYSQL_USER: oc_autotest
|
||||||
- MYSQL_PASSWORD=owncloud
|
MYSQL_PASSWORD: owncloud
|
||||||
- MYSQL_DATABASE=oc_autotest
|
MYSQL_DATABASE: oc_autotest
|
||||||
command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
|
command: [ "--innodb_large_prefix=true", "--innodb_file_format=barracuda", "--innodb_file_per_table=true" ]
|
||||||
when:
|
trigger:
|
||||||
matrix:
|
branch:
|
||||||
DB: mysql
|
- master
|
||||||
postgres:
|
event:
|
||||||
image: postgres:10
|
- pull_request
|
||||||
environment:
|
- push
|
||||||
- POSTGRES_USER=oc_autotest
|
---
|
||||||
# This is required as nextcloud will create a separte user since the oc_autotest user can create roles
|
kind: pipeline
|
||||||
- POSTGRES_DB=oc_autotest_dummy
|
name: frontend
|
||||||
- POSTGRES_PASSWORD=owncloud
|
steps:
|
||||||
when:
|
- name: eslint
|
||||||
matrix:
|
image: node:lts-alpine
|
||||||
DB: postgres
|
commands:
|
||||||
|
- npm install
|
||||||
matrix:
|
- npm run lint
|
||||||
include:
|
- name: vue-build
|
||||||
- TESTS: check-app-compatbility
|
image: node:lts-alpine
|
||||||
- TESTS: syntax-php7.0
|
commands:
|
||||||
- TESTS: syntax-php7.1
|
- npm install
|
||||||
- TESTS: syntax-php7.2
|
- npm run build
|
||||||
- TESTS: syntax-php7.3
|
trigger:
|
||||||
- TESTS: php7.1
|
branch:
|
||||||
DB: sqlite
|
- master
|
||||||
- TESTS: php7.1
|
event:
|
||||||
DB: mysql
|
- pull_request
|
||||||
# Removed temporary until we migrated notes to a new table
|
- push
|
||||||
# - TESTS: php7.1
|
|
||||||
# DB: postgres
|
|
||||||
- TESTS: eslint
|
|
||||||
- TESTS: vue-build
|
|
||||||
|
|
||||||
|
|
||||||
branches: [ master, stable*, alpha1 ]
|
|
||||||
|
|
Ładowanie…
Reference in New Issue