56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
language: php
|
|
php:
|
|
- 7.2
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libxml2-utils
|
|
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
|
|
env:
|
|
global:
|
|
- CORE_BRANCH=master
|
|
- APP_NAME=notes
|
|
matrix:
|
|
- DB=mysql
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- /^stable\d*$/
|
|
|
|
before_install:
|
|
#- export DISPLAY=:99.0
|
|
#- export CHROME_BIN=chromium-browser
|
|
#- sh -e /etc/init.d/xvfb start
|
|
#- sudo apt-get update
|
|
#- sudo apt-get install firefox
|
|
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
|
|
- . ./before_install.sh $APP_NAME $CORE_BRANCH $DB
|
|
- cd ../server/
|
|
- php occ app:enable notes
|
|
- cd apps/$APP_NAME
|
|
|
|
script:
|
|
# Check info.xml schema validity
|
|
- wget https://apps.nextcloud.com/schema/apps/info.xsd
|
|
- xmllint appinfo/info.xml --schema info.xsd --noout
|
|
- rm info.xsd
|
|
# Check PHP syntax errors
|
|
- find . -name \*.php -exec php -l "{}" \;
|
|
# Check app validity
|
|
- php ../../occ app:check-code notes
|
|
# Run PHP unit tests (skipped due to errors)
|
|
# - phpunit --coverage-clover clover.xml -c phpunit.xml
|
|
# - phpunit -c phpunit.integration.xml
|
|
|
|
# build js
|
|
- make init
|
|
- make lint
|
|
- make build-js-production
|
|
|