Skip to content

Commit 3b86ff4

Browse files
author
Martin Brecht-Precht
committed
Added coverage report related information.
1 parent 5eab5c0 commit 3b86ff4

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

.travis.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
language: php
22

3-
before_install:
4-
- sudo apt-get -qq update
5-
- sudo apt-get install -y qrencode
6-
- pear config-set preferred_state beta
7-
- printf "\n" | pecl install imagick
8-
- echo "extension=imagick.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
9-
- php -m
10-
113
branches:
124
only:
135
- master
@@ -19,10 +11,27 @@ php:
1911
- '7.0'
2012
- hhvm
2113

22-
install:
23-
- composer install
24-
2514
matrix:
2615
allow_failures:
2716
- php: hhvm
2817
- php: '5.3'
18+
19+
before_install:
20+
- sudo apt-get -qq update
21+
- sudo apt-get install -y qrencode
22+
- pear config-set preferred_state beta
23+
- printf "\n" | pecl install imagick
24+
- echo "extension=imagick.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
25+
- php -m
26+
27+
install:
28+
- composer install
29+
30+
before_script:
31+
- mkdir -p build/logs
32+
33+
script:
34+
- phpunit --coverage-clover build/logs/clover.xml
35+
36+
after_success:
37+
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "5.3" ]; then CODECLIMATE_REPO_TOKEN=fa42f567b7666793956a507e50d3a8b9bb833a9a1183cb543bedd2ea5cafb8be ./vendor/bin/test-reporter; fi;'

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"ext-imagick": "*"
3434
},
3535
"require-dev": {
36-
"phpunit/phpunit": "~4.8"
36+
"phpunit/phpunit": "~4.8",
37+
"codeclimate/php-test-reporter": "dev-master"
3738
}
3839
}

0 commit comments

Comments
 (0)