2017-07-13 16:09:22 +03:00
|
|
|
pipeline:
|
|
|
|
clone:
|
|
|
|
image: plugins/git
|
|
|
|
depth: 1
|
|
|
|
check-app-compatbility:
|
|
|
|
image: nextcloudci/php5.6:php5.6-3
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=master
|
|
|
|
- DB=sqlite
|
|
|
|
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
|
2017-07-13 17:20:38 +03:00
|
|
|
- cd apps/$APP_NAME/
|
|
|
|
- rm -rf Tests
|
2017-07-13 16:09:22 +03:00
|
|
|
|
|
|
|
# Code checker
|
2017-07-13 17:20:38 +03:00
|
|
|
- cd ../../
|
2017-07-13 16:09:22 +03:00
|
|
|
- ./occ app:check-code $APP_NAME -c strong-comparison
|
|
|
|
- ./occ app:check-code $APP_NAME -c deprecation
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: check-app-compatbility
|
2017-07-13 20:18:41 +03:00
|
|
|
check-app-compatbility-stable11:
|
|
|
|
image: nextcloudci/php5.6:php5.6-3
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=stable11
|
|
|
|
- DB=sqlite
|
|
|
|
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
|
|
|
|
- cd apps/$APP_NAME/
|
|
|
|
- rm -rf Tests
|
|
|
|
|
|
|
|
# Code checker
|
|
|
|
- cd ../../
|
|
|
|
- ./occ app:check-code $APP_NAME -c strong-comparison
|
|
|
|
- ./occ app:check-code $APP_NAME -c deprecation
|
|
|
|
- cd apps/$APP_NAME/
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: check-app-compatbility-stable11
|
2017-07-13 16:09:22 +03:00
|
|
|
check-app-compatbility-stable12:
|
|
|
|
image: nextcloudci/php5.6:php5.6-3
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=stable12
|
|
|
|
- DB=sqlite
|
|
|
|
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
|
2017-07-13 17:20:38 +03:00
|
|
|
- cd apps/$APP_NAME/
|
|
|
|
- rm -rf Tests
|
2017-07-13 16:09:22 +03:00
|
|
|
|
|
|
|
# Code checker
|
2017-07-13 17:20:38 +03:00
|
|
|
- cd ../../
|
2017-07-13 16:09:22 +03:00
|
|
|
- ./occ app:check-code $APP_NAME -c strong-comparison
|
|
|
|
- ./occ app:check-code $APP_NAME -c deprecation
|
|
|
|
- cd apps/$APP_NAME/
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: check-app-compatbility-stable12
|
|
|
|
signed-off-check:
|
|
|
|
image: nextcloudci/php7.0:php7.0-2
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=master
|
|
|
|
- DB=sqlite
|
|
|
|
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
|
|
|
|
- php ./build/signed-off-checker.php
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: signed-off-check
|
|
|
|
php5.6:
|
|
|
|
image: nextcloudci/php5.6:php5.6-3
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=master
|
|
|
|
- DB=sqlite
|
|
|
|
commands:
|
|
|
|
- apt update && apt-get -y install php5-xdebug
|
|
|
|
|
|
|
|
# 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/apps/$APP_NAME
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd Tests/Unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
|
|
|
|
|
|
|
# Create coverage report
|
|
|
|
- wget https://codecov.io/bash -O codecov.sh
|
2017-07-13 19:33:33 +03:00
|
|
|
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 7b5aa41e-0493-4bd6-8a14-8bcd32a68c60 -f clover.xml; fi"
|
|
|
|
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 7b5aa41e-0493-4bd6-8a14-8bcd32a68c60 -f clover.xml; fi"
|
2017-07-13 16:09:22 +03:00
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: php5.6
|
|
|
|
php7.0:
|
|
|
|
image: nextcloudci/php7.0:php7.0-2
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=master
|
|
|
|
- DB=sqlite
|
|
|
|
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/apps/$APP_NAME
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd Tests/Unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: php7.0
|
|
|
|
php7.1:
|
|
|
|
image: nextcloudci/php7.1:php7.1-3
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=master
|
|
|
|
- DB=sqlite
|
|
|
|
commands:
|
|
|
|
# FIXME: Move into Docker image
|
|
|
|
- yum -y install wget
|
|
|
|
|
|
|
|
# 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/apps/$APP_NAME
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd Tests/Unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: php7.1
|
2017-07-13 20:18:41 +03:00
|
|
|
php5.6-stable11:
|
|
|
|
image: nextcloudci/php5.6:php5.6-3
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=stable11
|
|
|
|
- DB=sqlite
|
|
|
|
commands:
|
|
|
|
- apt update && apt-get -y install php5-xdebug
|
|
|
|
|
|
|
|
# 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/apps/$APP_NAME
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd Tests/Unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
|
|
|
|
|
|
|
# Create coverage report
|
|
|
|
- wget https://codecov.io/bash -O codecov.sh
|
|
|
|
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 7b5aa41e-0493-4bd6-8a14-8bcd32a68c60 -f clover.xml; fi"
|
|
|
|
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 7b5aa41e-0493-4bd6-8a14-8bcd32a68c60 -f clover.xml; fi"
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: php5.6-stable11
|
|
|
|
php7.0-stable11:
|
|
|
|
image: nextcloudci/php7.0:php7.0-2
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=stable11
|
|
|
|
- DB=sqlite
|
|
|
|
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/apps/$APP_NAME
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd Tests/Unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: php7.0-stable11
|
2017-07-13 16:09:22 +03:00
|
|
|
php5.6-stable12:
|
|
|
|
image: nextcloudci/php5.6:php5.6-3
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=stable12
|
|
|
|
- DB=sqlite
|
|
|
|
commands:
|
|
|
|
- apt update && apt-get -y install php5-xdebug
|
|
|
|
|
|
|
|
# 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/apps/$APP_NAME
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd Tests/Unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
|
|
|
|
|
|
|
# Create coverage report
|
|
|
|
- wget https://codecov.io/bash -O codecov.sh
|
2017-07-13 19:33:33 +03:00
|
|
|
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t 7b5aa41e-0493-4bd6-8a14-8bcd32a68c60 -f clover.xml; fi"
|
|
|
|
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t 7b5aa41e-0493-4bd6-8a14-8bcd32a68c60 -f clover.xml; fi"
|
2017-07-13 16:09:22 +03:00
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: php5.6-stable12
|
|
|
|
php7.0-stable12:
|
|
|
|
image: nextcloudci/php7.0:php7.0-2
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=stable12
|
|
|
|
- DB=sqlite
|
|
|
|
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/apps/$APP_NAME
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd Tests/Unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: php7.0-stable12
|
|
|
|
php7.1-stable12:
|
|
|
|
image: nextcloudci/php7.1:php7.1-3
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=stable12
|
|
|
|
- DB=sqlite
|
|
|
|
commands:
|
|
|
|
# FIXME: Move into Docker image
|
|
|
|
- yum -y install wget
|
|
|
|
|
|
|
|
# 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/apps/$APP_NAME
|
|
|
|
|
|
|
|
# Run phpunit tests
|
|
|
|
- cd Tests/Unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: php7.1-stable12
|
|
|
|
integration-tests:
|
|
|
|
image: nextcloudci/php7.0:php7.0-2
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=stable12
|
|
|
|
- DB=sqlite
|
|
|
|
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
|
2017-07-13 17:25:17 +03:00
|
|
|
- cd ../server/
|
|
|
|
- ./occ app:enable loginviapost
|
2017-07-13 16:09:22 +03:00
|
|
|
- php -S localhost:8080 &
|
|
|
|
|
|
|
|
# Run behat tests
|
2017-07-13 17:25:17 +03:00
|
|
|
- cd apps/$APP_NAME/Tests/Integration/
|
2017-07-13 16:09:22 +03:00
|
|
|
- vendor/bin/behat
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: integration-tests
|
2017-07-13 20:18:41 +03:00
|
|
|
integration-tests-stable11:
|
|
|
|
image: nextcloudci/php7.0:php7.0-2
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=stable11
|
|
|
|
- DB=sqlite
|
|
|
|
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 loginviapost
|
|
|
|
- php -S localhost:8080 &
|
|
|
|
|
|
|
|
# Run behat tests
|
|
|
|
- cd apps/$APP_NAME/Tests/Integration/
|
|
|
|
- vendor/bin/behat
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: integration-tests-stable11
|
2017-07-13 16:09:22 +03:00
|
|
|
integration-tests-stable12:
|
|
|
|
image: nextcloudci/php7.0:php7.0-2
|
|
|
|
environment:
|
|
|
|
- APP_NAME=loginviapost
|
|
|
|
- CORE_BRANCH=stable12
|
|
|
|
- DB=sqlite
|
|
|
|
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
|
2017-07-13 17:25:17 +03:00
|
|
|
- cd ../server/
|
|
|
|
- ./occ app:enable loginviapost
|
2017-07-13 16:09:22 +03:00
|
|
|
- php -S localhost:8080 &
|
|
|
|
|
|
|
|
# Run behat tests
|
2017-07-13 17:25:17 +03:00
|
|
|
- cd apps/$APP_NAME/Tests/Integration/
|
2017-07-13 16:09:22 +03:00
|
|
|
- vendor/bin/behat
|
|
|
|
when:
|
|
|
|
matrix:
|
|
|
|
TESTS: integration-tests-stable12
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- TESTS: php5.6
|
|
|
|
- TESTS: php7.0
|
|
|
|
- TESTS: php7.1
|
2017-07-13 20:18:41 +03:00
|
|
|
- TESTS: php5.6-stable11
|
|
|
|
- TESTS: php7.0-stable11
|
2017-07-13 16:09:22 +03:00
|
|
|
- TESTS: php5.6-stable12
|
|
|
|
- TESTS: php7.0-stable12
|
|
|
|
- TESTS: php7.1-stable12
|
|
|
|
- TESTS: check-app-compatbility
|
2017-07-13 20:18:41 +03:00
|
|
|
- TESTS: check-app-compatbility-stable11
|
2017-07-13 16:09:22 +03:00
|
|
|
- TESTS: check-app-compatbility-stable12
|
|
|
|
- TESTS: signed-off-check
|
|
|
|
- TESTS: integration-tests
|
2017-07-13 20:18:41 +03:00
|
|
|
- TESTS: integration-tests-stable11
|
2017-07-13 16:09:22 +03:00
|
|
|
- TESTS: integration-tests-stable12
|