Add testing for stable17

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-09-05 10:54:09 +02:00
parent f372fb5153
commit fa749848f9
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -94,6 +94,51 @@ trigger:
- pull_request
- push
---
kind: pipeline
name: tests-17
clone:
depth: 1
steps:
- name: php7.2-stable17
image: nextcloudci/php7.2:php7.2-12
environment:
APP_NAME: user_saml
CORE_BRANCH: stable17
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: stable17
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
# use local clone
- cp -r /drone/src /var/www/html/apps/user_saml
- 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-16