adjust test config
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
c36dc6dc84
commit
47a257fc90
232
.drone.yml
232
.drone.yml
|
@ -27,6 +27,66 @@ trigger:
|
|||
|
||||
type: docker
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: compatibility-22
|
||||
|
||||
clone:
|
||||
depth: 1
|
||||
|
||||
steps:
|
||||
- name: app-code-check
|
||||
image: nextcloudci/php7.3:php7.3-5
|
||||
environment:
|
||||
APP_NAME: user_saml
|
||||
CORE_BRANCH: stable22
|
||||
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
|
||||
- ./occ app:check-code $APP_NAME -c strong-comparison -c deprecation
|
||||
- cd apps/$APP_NAME/
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
type: docker
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: compatibility-21
|
||||
|
||||
clone:
|
||||
depth: 1
|
||||
|
||||
steps:
|
||||
- name: app-code-check
|
||||
image: nextcloudci/php7.3:php7.3-5
|
||||
environment:
|
||||
APP_NAME: user_saml
|
||||
CORE_BRANCH: stable21
|
||||
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
|
||||
- ./occ app:check-code $APP_NAME -c strong-comparison -c deprecation
|
||||
- cd apps/$APP_NAME/
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
type: docker
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: tests-master
|
||||
|
@ -59,6 +119,18 @@ steps:
|
|||
- cd ../server/apps/$APP_NAME
|
||||
- cd tests/unit/
|
||||
- phpunit --configuration phpunit.xml
|
||||
- name: php8.0
|
||||
image: nextcloudci/php8.0:latest
|
||||
environment:
|
||||
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
|
||||
|
||||
type: docker
|
||||
|
||||
|
@ -96,3 +168,163 @@ trigger:
|
|||
|
||||
type: docker
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: tests-22
|
||||
|
||||
clone:
|
||||
depth: 1
|
||||
|
||||
steps:
|
||||
- name: php7.3
|
||||
image: nextcloudci/php7.3:php7.3-5
|
||||
environment:
|
||||
APP_NAME: user_saml
|
||||
CORE_BRANCH: stable22
|
||||
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: php7.4
|
||||
image: nextcloudci/php7.4:php7.4-2
|
||||
environment:
|
||||
APP_NAME: user_saml
|
||||
CORE_BRANCH: stable22
|
||||
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: php8.0
|
||||
image: nextcloudci/php8.0:latest
|
||||
environment:
|
||||
APP_NAME: user_saml
|
||||
CORE_BRANCH: stable22
|
||||
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
|
||||
|
||||
type: docker
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: integration-tests-stable22
|
||||
|
||||
clone:
|
||||
depth: 1
|
||||
|
||||
steps:
|
||||
- name: integration-tests-master
|
||||
image: nextcloudci/user_saml_shibboleth-php7.3:user_saml_shibboleth_php7.3-2
|
||||
environment:
|
||||
CORE_BRANCH: stable22
|
||||
commands:
|
||||
- /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-php73 "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-php73 "bash -c 'cd /var/www/html/apps/user_saml/tests/integration && vendor/bin/behat'"
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
type: docker
|
||||
---
|
||||
kind: pipeline
|
||||
name: tests-21
|
||||
|
||||
clone:
|
||||
depth: 1
|
||||
|
||||
steps:
|
||||
- name: php7.3
|
||||
image: nextcloudci/php7.3:php7.3-5
|
||||
environment:
|
||||
APP_NAME: user_saml
|
||||
CORE_BRANCH: stable21
|
||||
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: php7.4
|
||||
image: nextcloudci/php7.4:php7.4-2
|
||||
environment:
|
||||
APP_NAME: user_saml
|
||||
CORE_BRANCH: stable21
|
||||
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: php8.0
|
||||
image: nextcloudci/php8.0:latest
|
||||
environment:
|
||||
APP_NAME: user_saml
|
||||
CORE_BRANCH: stable21
|
||||
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
|
||||
|
||||
type: docker
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: integration-tests-stable21
|
||||
|
||||
clone:
|
||||
depth: 1
|
||||
|
||||
steps:
|
||||
- name: integration-tests-master
|
||||
image: nextcloudci/user_saml_shibboleth-php7.3:user_saml_shibboleth_php7.3-2
|
||||
environment:
|
||||
CORE_BRANCH: stable21
|
||||
commands:
|
||||
- /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-php73 "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-php73 "bash -c 'cd /var/www/html/apps/user_saml/tests/integration && vendor/bin/behat'"
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
type: docker
|
||||
|
|
Loading…
Reference in New Issue