wangtengyu
2018-12-03 0aaef70a400bee9b05d8b480fe9063910a428362
commit | author | age
1b7fd6 1 sudo: false
B 2
3 language: php
4
5 services:
6   - memcached
7   - mongodb
8   - mysql
9   - postgresql
10   - redis-server
11
12 matrix:
13   fast_finish: true
14   include:
15     - php: 5.4
16     - php: 5.5
17     - php: 5.6
18     - php: 7.0
19     - php: hhvm
20   allow_failures:
21     - php: hhvm
22
23 cache:
24   directories:
25     - $HOME/.composer/cache
26
27 before_install:
28   - composer self-update
29   - mysql -e "create database IF NOT EXISTS test;" -uroot
30   - psql -c 'DROP DATABASE IF EXISTS test;' -U postgres
31   - psql -c 'create database test;' -U postgres
32
33 install:
34   - ./tests/script/install.sh
35
36 script:
37   ## LINT
38   - find . -path ./vendor -prune -o -type f -name \*.php -exec php -l {} \;
39   ## PHP Copy/Paste Detector
40   - vendor/bin/phpcpd --verbose --exclude vendor ./ || true
41   ## PHPLOC
42   - vendor/bin/phploc --exclude vendor ./
43   ## PHPUNIT
44   - vendor/bin/phpunit --coverage-clover=coverage.xml --configuration=phpunit.xml
45
46 after_success:
47   - bash <(curl -s https://codecov.io/bash)