sudo: false language: php php: - 5.4 - 5.5 - 5.6 - 7 env: global: - CORE_BRANCH=master - TEST_JS=FALSE - secure: AaTeRG3kL/LeMOcMgul08EUBM7Kdtrkz9EAGPauKdxXbxggP0j5SxN8ciYxc8CiVni0CYJofW07YjG6tXqhvHeMINHx8Q+5KUUfiLwNrLgl1sMkh7vPR9EA5Z1Y8Nz4N1Qt7zxpqWKPHUsjUNFWxP2TPHEq2FEOGeKbsI7GOYas= - secure: S5agbWaWSLgbujsVhZB9WkCAM0ris8uh9hPnspYw48bolkMhknJ7JxOWGV4rOcJ52kdOgifFRE9XYi65RFLL8zuaZDBU2zFoXO3fpatziYEiIWnxVrkogw1pnh/FeRnrUld+QDykFyUcfSGdFRw5R5FuZHrxe+Q5bHfiEjh4hlE= matrix: - DB=sqlite branches: only: - master - /^stable\d+(\.\d+)?$/ cache: directories: - $HOME/.composer/cache/files - $HOME/.npm - $HOME/.cache/bower before_install: - composer self-update - make install-composer-deps - wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh - bash ./before_install.sh mail $CORE_BRANCH $DB - cd ../core - php occ app:enable mail - sh -c "if [ '$TEST_JS' = 'TRUE' ]; then npm install -g npm@latest; fi" before_script: - cd apps/mail - sh -c "if [ '$TEST_JS' = 'TRUE' ]; then make dev-setup; fi" script: # Test lint - find . -name \*.php -not -path './vendor/*' -exec php -l "{}" \; # Run js unit tests - sh -c "if [ '$TEST_JS' = 'TRUE' ]; then grunt; fi" # Run phpunit tests - cd tests - phpunit --configuration phpunit.xml # Create coverage report - sh -c "wget https://scrutinizer-ci.com/ocular.phar" - sh -c "php ocular.phar code-coverage:upload --format=php-clover clover.xml" matrix: include: - php: 5.4 env: "DB=mysql TEST_JS=TRUE" - php: 5.4 env: DB=pgsql - php: 5.4 env: "DB=mysql CORE_BRANCH=stable8" - php: 5.4 env: "DB=mysql CORE_BRANCH=stable8.1" - php: 5.4 env: "DB=mysql CORE_BRANCH=stable8.2" - php: 5.4 env: "DB=mysql CORE_BRANCH=stable7" allow_failures: - php: 7 fast_finish: true