Skip to content
Snippets Groups Projects
.travis.yml 1.7 KiB
Newer Older
sudo: false
Thomas Müller's avatar
Thomas Müller committed
language: php
php:
    - CORE_BRANCH=master
    - secure: AaTeRG3kL/LeMOcMgul08EUBM7Kdtrkz9EAGPauKdxXbxggP0j5SxN8ciYxc8CiVni0CYJofW07YjG6tXqhvHeMINHx8Q+5KUUfiLwNrLgl1sMkh7vPR9EA5Z1Y8Nz4N1Qt7zxpqWKPHUsjUNFWxP2TPHEq2FEOGeKbsI7GOYas=
    - secure: S5agbWaWSLgbujsVhZB9WkCAM0ris8uh9hPnspYw48bolkMhknJ7JxOWGV4rOcJ52kdOgifFRE9XYi65RFLL8zuaZDBU2zFoXO3fpatziYEiIWnxVrkogw1pnh/FeRnrUld+QDykFyUcfSGdFRw5R5FuZHrxe+Q5bHfiEjh4hlE=
    - master
    - /^stable\d+(\.\d+)?$/
Thomas Müller's avatar
Thomas Müller committed

Thomas Müller's avatar
Thomas Müller committed
  - composer self-update
  - composer install
  - 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
  - npm install -g npm@latest

before_script:
  - cd apps/mail
  - npm install --deps
Steffen Lindner's avatar
Steffen Lindner committed
  - npm run-script bower_deps
  # Test lint
  - find . -name \*.php -not -path './vendor/*' -exec php -l "{}" \;
  # Run js unit tests
  - grunt

  # Run phpunit tests
Thomas Müller's avatar
Thomas Müller committed
  - cd tests
  - 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"
    - php: 5.4
      env: DB=mysql
    - 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=stable7"
    - php: 7