File tree Expand file tree Collapse file tree 3 files changed +65
-79
lines changed
Expand file tree Collapse file tree 3 files changed +65
-79
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ workflows :
4+ version : 2
5+ lint_and_test :
6+ jobs :
7+ - lint
8+ - test70
9+ - test71
10+ - test72
11+
12+ jobs :
13+ lint :
14+ docker :
15+ - image : circleci/php:7.2-cli
16+ steps :
17+ - checkout
18+ - run : { name: "Install dependencies", command: sudo composer self-update && composer install -n --prefer-dist }
19+ - run :
20+ name : Syntax tests
21+ command : |
22+ wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -q -O php-cs-fixer.phar
23+ composer run lint-syntax
24+ - run :
25+ name : Static analysis
26+ command : |
27+ wget https://github.com/phpstan/phpstan/releases/download/0.9.2/phpstan.phar -q -O phpstan.phar
28+ composer run lint-static-analysis
29+
30+ test56 :
31+ docker :
32+ - image : circleci/php:5.6-cli
33+ steps :
34+ - checkout
35+ - run : { name: "Install dependencies", command: "sudo composer self-update && composer install -n --prefer-dist" }
36+ - run : { name: "Test suite", command: "composer test-quick-fail" }
37+
38+ test70 :
39+ docker :
40+ - image : circleci/php:7.0-cli
41+ steps :
42+ - checkout
43+ - run : { name: "Install dependencies", command: "sudo composer self-update && composer install -n --prefer-dist" }
44+ - run : { name: "Test suite", command: "composer test-quick-fail" }
45+
46+ test71 :
47+ docker :
48+ - image : circleci/php:7.1-cli
49+ steps :
50+ - checkout
51+ - run : { name: "Install dependencies", command: "sudo composer self-update && composer install -n --prefer-dist" }
52+ - run : { name: "Test suite", command: "composer test-quick-fail" }
53+
54+ test72 :
55+ docker :
56+ - image : circleci/php:7.2-cli
57+ steps :
58+ - checkout
59+ - run : { name: "Install dependencies", command: "sudo composer self-update && composer install -n --prefer-dist" }
60+ - run : { name: "Test suite", command: "composer test-quick-fail" }
61+ - run : { name: "Upload code coverage", command: "bash <(curl -s https://codecov.io/bash) -f build/logs/clover.xml" }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2727 }
2828 },
2929 "scripts" : {
30- "test" : " vendor/bin/phpunit"
30+ "test" : " vendor/bin/phpunit" ,
31+ "test-quick-fail" : " php vendor/bin/phpunit --stop-on-error --stop-on-failure -v" ,
32+ "lint-syntax" : " $([ -f php-cs-fixer.phar ] && echo \" php php-cs-fixer.phar\" || echo \" php-cs-fixer\" ) fix --dry-run --stop-on-violation -v" ,
33+ "lint-static-analysis" : " $([ -f phpstan.phar ] && echo \" php phpstan.phar\" || echo \" phpstan\" ) analyse --level=max src/"
3134 },
3235 "extra" : {
3336 "branch-alias" : {
You can’t perform that action at this time.
0 commit comments