Bye travis

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-02-05 13:38:27 +01:00
parent 8657aabc66
commit 31e27aa3a1
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
6 changed files with 0 additions and 132 deletions

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"