File tree 4 files changed +715
-2
lines changed
4 files changed +715
-2
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 embedly_api_key=$EMBEDLY_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 17
17
"scotteh/php-goose" : " ^0.4"
18
18
},
19
19
"require-dev" : {
20
- "phpunit/phpunit" : " ^5.7"
20
+ "phpunit/phpunit" : " ^5.7" ,
21
+ "satooshi/php-coveralls" : " ^1.0" ,
22
+ "squizlabs/php_codesniffer" : " ^2.8"
21
23
},
22
24
"autoload" : {
23
25
"psr-4" : {"DayRev\\ Extractor\\ " : " src/" }
You can’t perform that action at this time.
0 commit comments