-
Notifications
You must be signed in to change notification settings - Fork 69
/
.travis.yml
40 lines (31 loc) · 856 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
language: php
php:
- 5.6
- 7.0
- 7.0
- 7.1
dist: trusty
env:
matrix:
- DB=mysql db_dsn='mysql://root:@127.0.0.1/quick_test'
- DB=sqlite db_dsn='sqlite:///:memory:'
services:
- mysql
matrix:
fast_finish: true
include:
- php: 7.0
env: PHPCS=1
before_install:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -u root -e 'CREATE DATABASE quick_test;'; fi"
- phpenv rehash
- set +H
before_script:
- COMPOSER_ROOT_VERSION=dev-master
- composer self-update
- composer install --prefer-dist --no-interaction
script:
- sh -c "if [ '$PHPCS' != '1' ]; then vendor/bin/phpunit; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p -n --ignore=*/Lib/*,*fixture/*,*webroot/*,*config/*,*aop/* --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./plugins; fi"
notifications:
email: false