diff options
author | splitt3r <splitt3r@users.noreply.github.com> | 2017-10-22 19:35:10 +0300 |
---|---|---|
committer | splitt3r <splitt3r@users.noreply.github.com> | 2017-10-22 19:35:10 +0300 |
commit | ed10f221544b5dc002d2f58897eb937ef04eb895 (patch) | |
tree | a191e038d863e26e6046a507a5423499c553d2ad /.travis.yml | |
parent | f173eac4f848cf6d65e0fb7e6e3cf2c354336b94 (diff) |
Added xmllinting to Travis CI
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index a831484b..ea6970fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,11 @@ php: - 7.0 - 7.1 +addons: + apt: + packages: + - libxml2-utils + env: global: - CORE_BRANCH=stable12 @@ -25,6 +30,7 @@ cache: - $HOME/.composer/cache before_install: + # Install NC and app - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB - cd ../server @@ -34,6 +40,13 @@ before_script: - 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 "{}" \; + # Execute tests - make test after_failure: |