-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
39 lines (29 loc) · 1.01 KB
/
.travis.yml
File metadata and controls
39 lines (29 loc) · 1.01 KB
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
language: php
sudo: false
php:
- 7.2
matrix:
fast_finish: true
include:
- php: 7.2
env: PHPCS=1
services:
- mysql
before_script:
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:*; fi
- if [[ $PHPCS != 1 ]]; then composer install; fi
- if [[ $PHPCS != 1 ]]; then composer run-script post-install-cmd --no-interaction; fi
- sh -c "mysql -e 'CREATE DATABASE IF NOT EXISTS dc_cri_testing;'"
- phpenv rehash
script:
- if [[ $PHPCS != 1 ]]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi
- if [[ $PHPCS != 1 ]]; then mkdir -p build/logs; fi
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --error-severity=1 --warning-severity=0 --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests ./config ./webroot; fi
notifications:
email: false
slack: cber:ZeUxtjnpHNEYCkMtUBhskwXl
addons:
code_climate:
repo_token: 6f9e5cdde0fa1fe6e6a6438f7e4b420e7421359473738bdb5b60c5c3f2113a25
after_success:
- vendor/bin/test-reporter