forked from php-lock/lock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (38 loc) · 944 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 7.1
- 7.0
- 5.6
- hhvm
env:
global:
- MEMCACHE_HOST=localhost
- REDIS_URIS=redis://localhost,redis://localhost:63791
- MYSQL_DSN="mysql:host=localhost;dbname=test"
- MYSQL_USER=travis
- PGSQL_DSN="pgsql:host=localhost;dbname=test;"
- PGSQL_USER=postgres
services:
- memcached
- redis-server
matrix:
fast_finish: true
allow_failures:
- php: hhvm
before_install:
- phpenv config-add tests/php-travis.ini
- redis-server --port 63791 &
install:
- composer require squizlabs/php_codesniffer
- composer require phpmd/phpmd
before_script:
- mysql -e 'create database test;'
- psql -c 'create database test;' -U postgres
script:
- vendor/bin/phpunit
- vendor/bin/phpcs --standard=PSR2 classes/ tests/
- vendor/bin/phpmd classes/ text cleancode,codesize,controversial,design,naming,unusedcode