Add tests against 16

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-05-27 15:41:18 +02:00
parent b428edea96
commit fa70a04c7e
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -93,6 +93,50 @@ trigger:
- pull_request
- push
---
kind: pipeline
name: tests-16
clone:
depth: 1
steps:
- name: php7.1-stable16
image: nextcloudci/php7.1:php7.1-16
environment:
APP_NAME: user_saml
CORE_BRANCH: stable16
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
- name: integration-tests-stable16
image: nextcloudci/user_saml_shibboleth-php7.2:user_saml_shibboleth_php7.2-2
environment:
CORE_BRANCH: stable16
commands:
- sed -i 's_/etc/init.d/jetty run \&_sleep 4 \&\& /etc/init.d/jetty run \&_' /start.sh
- /start.sh &
- sleep 7
- 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
- cd /var/www/html/apps/ && git clone -b $DRONE_SOURCE_BRANCH https://github.com/nextcloud/user_saml.git
- 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'"
- 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
---
kind: pipeline
name: tests-15