clone: git: image: plugins/git depth: 1 pipeline: check-app-compatbility: image: nextcloudci/php7.0:php7.0-2 environment: - APP_NAME=user_saml - 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 # Code checker - ./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 signed-off-check: image: nextcloudci/php7.0:php7.0-2 environment: - APP_NAME=user_saml - 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 secrets: [ github_token ] when: matrix: TESTS: signed-off-check php7.0: image: nextcloudci/php7.0:php7.0-2 environment: - APP_NAME=user_saml - 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-12 environment: - APP_NAME=user_saml - 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.1 integration-tests: image: nextcloudci/user_saml_shibboleth-php7:user_saml_shibboleth_php7-5 environment: - CORE_BRANCH=master commands: - /start.sh & - sleep 3 - scl enable rh-php70 bash - 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_BRANCH https://github.com/nextcloud/user_saml.git - 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/ - cd /var/www/html/apps/user_saml/tests/integration && vendor/bin/behat when: matrix: TESTS: integration-tests matrix: include: - TESTS: php7.0 - TESTS: php7.1 - TESTS: check-app-compatbility - TESTS: signed-off-check - TESTS: integration-tests