File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : php
2
+
3
+ php :
4
+ - ' 7.0'
5
+ - ' 7.1'
6
+
7
+ # Install packages and create test coverage log directory.
8
+ before_script :
9
+ - composer install --dev --no-interaction
10
+ - mkdir -p build/logs
11
+
12
+ # Check code formatting, run tests and generate test coverage report.
13
+ script :
14
+ - vendor/bin/phpcs ./src ./tests --extensions=php --standard=PSR2
15
+ - vendor/bin/phpunit -d smmry_api_key=$SMMRY_API_KEY --coverage-clover build/logs/clover.xml
16
+
17
+ # Submit test coverage report to Coveralls.
18
+ after_success :
19
+ - vendor/bin/coveralls -v
20
+
21
+ # Cache composer bits for faster test suite runs.
22
+ cache :
23
+ directories :
24
+ - $HOME/.composer/cache
25
+
26
+ notifications :
27
+ email :
28
+ on_success : change
29
+ on_failure : always
Original file line number Diff line number Diff line change 20
20
<exclude >./tests/Integration/TestCase.php</exclude >
21
21
</testsuite >
22
22
</testsuites >
23
+
24
+ <filter >
25
+ <whitelist >
26
+ <directory >./src</directory >
27
+ <exclude >
28
+ <directory >./tests</directory >
29
+ <directory >./vendor</directory >
30
+ </exclude >
31
+ </whitelist >
32
+ </filter >
23
33
</phpunit >
You can’t perform that action at this time.
0 commit comments