forked from michaelmoussa/noodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (27 loc) · 1.04 KB
/
.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
sudo: false
language: php
php:
- 7.0
branches:
only:
- master
env:
- COMPOSER_DISABLE_XDEBUG_WARN=1
cache:
directories:
- $TRAVIS_BUILD_DIR/node_modules
- $TRAVIS_BUILD_DIR/vendor
install:
- # Disable xdebug to speed up Composer install
- cp ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini.bak
- composer install --prefer-dist --no-interaction
- npm install remark remark-lint remark-preset-lint-recommended
script:
- # Restore xdebug to gather code coverage
- cp ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini.bak ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- vendor/bin/phpunit
- vendor/bin/php-coverage-checker build/coverage-clover.xml 100
- vendor/bin/phpcs --standard=PSR2 ./src ./test
- node_modules/remark-cli/cli.js -u present-lint-recommended *.md
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/coverage-clover.xml