2019-04-12 15:43:29 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: check-app-compatbility
|
2018-05-18 23:07:41 +02:00
|
|
|
|
2019-04-12 15:43:29 +02:00
|
|
|
steps:
|
|
|
|
- name: check-app-compatbility
|
2018-05-18 23:07:41 +02:00
|
|
|
image: nextcloudci/php7.0:php7.0-2
|
|
|
|
environment:
|
2019-04-12 15:43:29 +02:00
|
|
|
APP_NAME: data_request
|
|
|
|
CORE_BRANCH: stable15
|
|
|
|
DB: sqlite
|
2018-06-14 11:45:23 +02:00
|
|
|
commands:
|
|
|
|
# Pre-setup steps
|
|
|
|
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
|
|
|
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
|
|
|
- cd ../server
|
2018-06-14 14:46:20 +02:00
|
|
|
|
|
|
|
# Code checker
|
|
|
|
- ./occ app:check-code $APP_NAME
|
2019-04-12 15:45:20 +02:00
|
|
|
|
2019-04-12 15:43:29 +02:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- stable*
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: syntax-php7.0
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: syntax-php7.0
|
2018-06-14 11:45:23 +02:00
|
|
|
image: nextcloudci/php7.0:php7.0-2
|
|
|
|
environment:
|
2019-04-12 15:43:29 +02:00
|
|
|
APP_NAME: data_request
|
|
|
|
CORE_BRANCH: stable15
|
|
|
|
DB: sqlite
|
2018-06-14 11:45:23 +02:00
|
|
|
commands:
|
|
|
|
# Pre-setup steps
|
|
|
|
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
|
|
|
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
|
|
|
- cd ../server
|
|
|
|
- composer install
|
|
|
|
- ./lib/composer/bin/parallel-lint apps/$APP_NAME/
|
2019-04-12 15:43:29 +02:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- stable*
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: php7.0
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: php7.0
|
2018-06-14 14:46:20 +02:00
|
|
|
image: nextcloudci/php7.0:php7.0-2
|
|
|
|
environment:
|
2019-04-12 15:43:29 +02:00
|
|
|
APP_NAME: data_request
|
|
|
|
CORE_BRANCH: stable15
|
|
|
|
DB: sqlite
|
2018-06-14 14:46:20 +02:00
|
|
|
commands:
|
|
|
|
# Pre-setup steps
|
|
|
|
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
|
|
|
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
|
|
|
- cd ../server/
|
|
|
|
- ./occ app:enable $APP_NAME
|
|
|
|
- cd apps/$APP_NAME
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd tests/unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
2019-04-12 15:43:29 +02:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- stable*
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: php7.1
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: php7.1
|
2018-06-14 14:46:20 +02:00
|
|
|
image: nextcloudci/php7.1:php7.1-15
|
|
|
|
environment:
|
2019-04-12 15:43:29 +02:00
|
|
|
APP_NAME: data_request
|
|
|
|
CORE_BRANCH: stable15
|
|
|
|
DB: sqlite
|
2018-06-14 14:46:20 +02:00
|
|
|
commands:
|
|
|
|
# Pre-setup steps
|
|
|
|
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
|
|
|
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
|
|
|
- cd ../server/
|
|
|
|
- ./occ app:enable $APP_NAME
|
|
|
|
- cd apps/$APP_NAME
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd tests/unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
2019-04-12 15:43:29 +02:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- stable*
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: php7.2
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: php7.2
|
2018-08-01 17:04:24 +02:00
|
|
|
image: nextcloudci/php7.2:php7.2-12
|
|
|
|
environment:
|
2019-04-12 15:43:29 +02:00
|
|
|
APP_NAME: data_request
|
|
|
|
CORE_BRANCH: stable15
|
|
|
|
DB: sqlite
|
2018-08-01 17:04:24 +02:00
|
|
|
commands:
|
2019-04-12 15:43:29 +02:00
|
|
|
# Pre-setup steps
|
|
|
|
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
|
|
|
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
|
|
|
- cd ../server/
|
|
|
|
- ./occ app:enable $APP_NAME
|
|
|
|
- cd apps/$APP_NAME
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd tests/unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
- stable*
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|