зеркало из https://github.com/nextcloud/guests.git
43 строки
943 B
YAML
43 строки
943 B
YAML
language: php
|
|
php:
|
|
- 7.2
|
|
- 7.3
|
|
- 7.4snapshot
|
|
|
|
env:
|
|
global:
|
|
- APP_NAME=guests
|
|
- DB=sqlite
|
|
matrix:
|
|
- CORE_BRANCH=master
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- /^stable\d+(\.\d+)?$/
|
|
|
|
before_install:
|
|
- cd ../
|
|
- git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH nextcloud
|
|
- mv $APP_NAME nextcloud/apps/
|
|
|
|
before_script:
|
|
# fill nextcloud with default configs and enable the app
|
|
- cd nextcloud
|
|
- mkdir data
|
|
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
|
|
- ./occ app:enable $APP_NAME
|
|
- cd apps/$APP_NAME
|
|
- composer install
|
|
|
|
script:
|
|
# check syntax
|
|
- vendor/bin/parallel-lint --exclude app --exclude vendor --exclude tests .
|
|
# Run phpunit tests
|
|
- cd tests
|
|
- ../vendor/bin/phpunit --configuration phpunit.xml
|
|
# build js
|
|
- npm install
|
|
- npm run build
|
|
|