2019-04-09 14:13:05 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: compatibility
|
|
|
|
|
2017-08-09 11:16:07 +02:00
|
|
|
clone:
|
2019-04-09 14:13:05 +02:00
|
|
|
depth: 1
|
2017-08-09 11:16:07 +02:00
|
|
|
|
2019-04-09 14:13:05 +02:00
|
|
|
steps:
|
|
|
|
- name: app-code-check
|
2020-10-09 10:12:44 +02:00
|
|
|
image: nextcloudci/php7.3:php7.3-5
|
2016-09-26 20:30:44 +02:00
|
|
|
environment:
|
2019-04-09 14:13:05 +02:00
|
|
|
APP_NAME: user_saml
|
|
|
|
CORE_BRANCH: master
|
|
|
|
DB: sqlite
|
2016-09-26 20:30:44 +02:00
|
|
|
commands:
|
|
|
|
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
|
|
|
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
|
|
|
- cd ../server
|
2019-04-09 14:13:05 +02:00
|
|
|
- ./occ app:check-code $APP_NAME -c strong-comparison -c deprecation
|
2016-09-26 20:30:44 +02:00
|
|
|
- cd apps/$APP_NAME/
|
2018-11-23 17:14:40 +01:00
|
|
|
|
2019-04-09 14:13:05 +02:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
|
|
|
|
2020-01-29 17:21:32 +01:00
|
|
|
type: docker
|
|
|
|
|
2019-04-09 14:13:05 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: tests-master
|
2018-11-23 17:14:40 +01:00
|
|
|
|
2019-04-09 14:13:05 +02:00
|
|
|
clone:
|
|
|
|
depth: 1
|
|
|
|
|
|
|
|
steps:
|
2020-10-09 10:12:44 +02:00
|
|
|
- name: php7.3
|
|
|
|
image: nextcloudci/php7.3:php7.3-5
|
2018-11-22 15:22:36 +01:00
|
|
|
environment:
|
2019-04-09 14:13:05 +02:00
|
|
|
APP_NAME: user_saml
|
|
|
|
CORE_BRANCH: master
|
|
|
|
DB: sqlite
|
2018-11-22 15:22:36 +01:00
|
|
|
commands:
|
|
|
|
- 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
|
|
|
|
- cd tests/unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
2020-10-09 10:12:44 +02:00
|
|
|
- name: php7.4
|
|
|
|
image: nextcloudci/php7.4:php7.4-2
|
2018-11-22 15:22:36 +01:00
|
|
|
environment:
|
2019-04-09 14:13:05 +02:00
|
|
|
APP_NAME: user_saml
|
|
|
|
CORE_BRANCH: master
|
|
|
|
DB: sqlite
|
|
|
|
commands:
|
|
|
|
- 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
|
|
|
|
- cd tests/unit/
|
|
|
|
- phpunit --configuration phpunit.xml
|
2020-01-29 17:21:32 +01:00
|
|
|
|
2020-10-09 11:13:27 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: integration-tests-master
|
|
|
|
|
|
|
|
clone:
|
|
|
|
depth: 1
|
|
|
|
|
|
|
|
steps:
|
2019-04-09 14:13:05 +02:00
|
|
|
- name: integration-tests-master
|
2020-01-29 17:21:32 +01:00
|
|
|
image: nextcloudci/user_saml_shibboleth-php7.2:user_saml_shibboleth_php7.2-3
|
2019-04-09 14:13:05 +02:00
|
|
|
environment:
|
|
|
|
CORE_BRANCH: master
|
|
|
|
commands:
|
|
|
|
- /start.sh &
|
2019-04-11 10:39:18 +02:00
|
|
|
- sleep 7
|
2019-04-09 14:13:05 +02:00
|
|
|
- rm -rf /var/www/html
|
|
|
|
- cd /var/www/
|
|
|
|
- git clone --depth 1 -b $CORE_BRANCH https://github.com/nextcloud/server html
|
|
|
|
- cd /var/www/html && git submodule update --init
|
2019-06-07 19:24:05 +02:00
|
|
|
# use local clone
|
|
|
|
- cp -r /drone/src /var/www/html/apps/user_saml
|
2019-04-09 22:26:58 +02:00
|
|
|
- scl enable rh-php72 "bash -c 'php /var/www/html/occ maintenance:install --database sqlite --admin-pass password; php /var/www/html/occ app:enable user_saml'"
|
2019-05-27 15:41:18 +02:00
|
|
|
- chown -R apache:apache /var/www/html/
|
|
|
|
- scl enable rh-php72 "bash -c 'cd /var/www/html/apps/user_saml/tests/integration && vendor/bin/behat'"
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
- push
|
2020-01-29 17:21:32 +01:00
|
|
|
|
2020-05-07 09:33:29 +02:00
|
|
|
type: docker
|