From 31e27aa3a1bdd85a1bab801901e8f859a4313fd2 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 5 Feb 2021 13:38:27 +0100 Subject: [PATCH] Bye travis Signed-off-by: Joas Schilling --- .travis.yml | 53 --------------------------------- tests/scripts/app-check-code.sh | 9 ------ tests/scripts/core-database.sh | 23 -------------- tests/scripts/core-download.sh | 17 ----------- tests/scripts/core-setup.sh | 18 ----------- tests/scripts/phpunit.sh | 12 -------- 6 files changed, 132 deletions(-) delete mode 100644 .travis.yml delete mode 100644 tests/scripts/app-check-code.sh delete mode 100755 tests/scripts/core-database.sh delete mode 100644 tests/scripts/core-download.sh delete mode 100755 tests/scripts/core-setup.sh delete mode 100755 tests/scripts/phpunit.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d7f0228..0000000 --- a/.travis.yml +++ /dev/null @@ -1,53 +0,0 @@ -sudo: false -language: php -php: - - 7.3 - - 7.4 - -cache: - directories: - - $HOME/.composer/cache/files - -services: - - mysql - - postgresql - -addons: - apt: - packages: - - libxml2-utils - -env: - global: - - APP_NAME=registration - - CORE_BRANCH=stable21 - - DB=sqlite - matrix: - -branches: - only: - - master - - /^stable\d+(\.\d+)?$/ - -matrix: - include: - - php: 7.3 - env: DB=mysql - - php: 7.3 - env: DB=pgsql - - php: 7.2 - env: CORE_BRANCH=stable20 - fast_finish: true - -before_install: - # XDebug is only needed if we report coverage -> speeds up other builds - - if [[ "$PHP_COVERAGE" = "FALSE" ]]; then phpenv config-rm xdebug.ini; fi - -install: - - . ./tests/scripts/core-download.sh - - . ${BUILD_APP_MODULE_DIR}/tests/scripts/core-database.sh - - . ${BUILD_APP_MODULE_DIR}/tests/scripts/core-setup.sh - -script: - # Run PHP tests - - . ${BUILD_APP_MODULE_DIR}/tests/scripts/phpunit.sh diff --git a/tests/scripts/app-check-code.sh b/tests/scripts/app-check-code.sh deleted file mode 100644 index 8261e61..0000000 --- a/tests/scripts/app-check-code.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -echo "travis_fold:start:app.check-code" - -set -e - -php -f ${BUILD_CORE_DIR}/occ app:check-code registration - -echo "travis_fold:end:app.check-code" diff --git a/tests/scripts/core-database.sh b/tests/scripts/core-database.sh deleted file mode 100755 index 9bc9fca..0000000 --- a/tests/scripts/core-database.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -echo "travis_fold:start:core.database.setup" - -set -e - -# MySQL -if [[ "${DB}" == 'mysql' ]] -then - mysql -u root -e 'CREATE DATABASE oc_autotest;' - mysql -u root -e "CREATE USER 'oc_autotest'@'localhost' IDENTIFIED BY '';" - mysql -u root -e "GRANT ALL ON oc_autotest.* TO 'oc_autotest'@'localhost';" -fi - -# Postgres -if [[ "${DB}" == 'pgsql' ]] -then - psql -U postgres -c 'CREATE DATABASE oc_autotest;' - psql -U postgres -c "CREATE USER oc_autotest WITH PASSWORD '';" - psql -U postgres -c 'GRANT ALL PRIVILEGES ON DATABASE oc_autotest TO oc_autotest;' -fi - -echo "travis_fold:end:core.database.setup" diff --git a/tests/scripts/core-download.sh b/tests/scripts/core-download.sh deleted file mode 100644 index cc90336..0000000 --- a/tests/scripts/core-download.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -echo "travis_fold:start:core.download" - -set -e - -# export some generic paths -export BUILD_ROOT_DIR=$(dirname `pwd`) -export BUILD_CORE_DIR="${BUILD_ROOT_DIR}/core" -export BUILD_APPS_DIR="${BUILD_CORE_DIR}/apps" -export BUILD_APP_MODULE_DIR="${BUILD_APPS_DIR}/registration" - -git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b ${CORE_BRANCH} ${BUILD_CORE_DIR} - -mv ${BUILD_ROOT_DIR}/registration ${BUILD_APPS_DIR} - -echo "travis_fold:end:core.download" diff --git a/tests/scripts/core-setup.sh b/tests/scripts/core-setup.sh deleted file mode 100755 index df26b39..0000000 --- a/tests/scripts/core-setup.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -echo "travis_fold:start:core.setup" - -set -e - -cd ${BUILD_CORE_DIR} - -# Set up core -php -f occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database ${DB} --database-pass='' - -# Set up app -php -f occ app:enable registration - -# Enable app twice to check occ errors of registered commands -php -f occ app:enable registration - -echo "travis_fold:end:core.setup" diff --git a/tests/scripts/phpunit.sh b/tests/scripts/phpunit.sh deleted file mode 100755 index 0f92356..0000000 --- a/tests/scripts/phpunit.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -echo "travis_fold:start:phpunit" - -set -e - -cd ${BUILD_APP_MODULE_DIR} - -composer install --prefer-dist --no-interaction -o -vendor/bin/phpunit -c tests/phpunit.xml - -echo "travis_fold:end:phpunit"