1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00
OwncloudContactsOfficial/.travis.yml
2015-05-08 13:11:21 +02:00

38 lines
1.1 KiB
YAML

language: php
php:
- 5.4
- 5.5
- 5.6
branches:
only:
- master
- /^stable\d*$/
env:
- DB=sqlite
- DB=mysql
# - DB=pgsql
before_install:
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh contacts master $DB
# - sudo add-apt-repository -y ppa:chris-lea/node.js
# - sudo apt-get update
# - sudo apt-get -y install nodejs
# - wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2
# - tar xjf phantomjs-1.9.0-linux-x86_64.tar.bz2
# - sudo ln -s $(pwd)/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
script:
- find . -name \*.php -exec php -l "{}" \;
- phpunit --configuration tests/phpunit.xml --testsuite unit-tests --coverage-clover clover.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"
#&& make javascript-tests