forked from MaisonLogicielLibre/Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
25 lines (19 loc) · 775 Bytes
/
.travis.yml
File metadata and controls
25 lines (19 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: php
php:
- 5.5
before_script:
- rm -rf app.php
- mv ./config/app_travis.php ./config/app.php
- sh -c "mysql -e 'CREATE DATABASE cakephp_test;'"
- composer self-update
- composer install --no-interaction --prefer-source
- mkdir -p build/logs
- phpenv rehash
- set +H
- cp phpunit.xml.dist phpunit.xml
script:
- phpunit -d zend.enable_gc=0 --coverage-clover build/logs/clover.xml -v
- php vendor/bin/coveralls -c .coveralls.yml -v
- sh -c "vendor/bin/phpcs -p --config-set show_warnings 0"
- sh -c "vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src/Model ./src/Controller ./tests/TestCase"
- sh -c "vendor/bin/phpcs -p --extensions=php ./src/Model ./src/Controller ./tests/TestCase"