diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-06-27 17:00:29 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-06-27 17:00:29 +0300 |
commit | 5e25fa1b4059f39049959d7b2fd43de5f9127c81 (patch) | |
tree | 29b13af95d7f2159ad38a672fdb03f36178ff6ea /.travis.yml | |
parent | ffddbeb11996b9a941a7c65c6633d215c2c61fad (diff) |
Add travis CI check if app is compliant
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index a4fb3a7..3ae128f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,8 +23,12 @@ before_install: - bash ./before_install.sh password_policy $CORE_BRANCH $DB script: + # Test if app is compliant + - cd ../server + - ./occ app:check-code password_policy + # Test lint - - cd ../server/apps/password_policy + - cd apps/password_policy - find . -name \*.php -exec php -l "{}" \; # Run phpunit tests @@ -32,8 +36,8 @@ script: - phpunit --configuration phpunit.xml # Create coverage report - - sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi" - - sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi" + - wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover clover.xml matrix: include: |