File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2.1
2+
3+ commands :
4+ run_test :
5+ description : " Run test"
6+ steps :
7+ - checkout
8+ - restore_cache :
9+ key : dependency-cache-composer-{{ checksum "composer.json" }}
10+ - run :
11+ name : Install php extensions
12+ command : |
13+ sudo docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd
14+ sudo docker-php-ext-install pcntl pdo_mysql
15+ - run :
16+ name : Install composer packages
17+ command : |
18+ composer install
19+ - save_cache :
20+ key : dependency-cache-composer-{{ checksum "composer.json" }}
21+ paths :
22+ - ~/app/vendor
23+ - run :
24+ name : Do static analysis
25+ command : |
26+ vendor/bin/phpstan
27+ - run :
28+ name : Test
29+ command : |
30+ vendor/bin/phpunit -d memory_limit=386M
31+
32+ jobs :
33+ run_test :
34+ working_directory : ~/app
35+ docker :
36+ - image : circleci/php:7.4.3
37+ steps :
38+ - run_test
39+
40+ workflows :
41+ version : 2
42+ build-deploy :
43+ jobs :
44+ - run_test :
45+ filters :
46+ tags :
47+ only : /^v.*/
48+ branches :
49+ only : /.*/
You can’t perform that action at this time.
0 commit comments