Skip to content

Commit a608c38

Browse files
committed
chore(config): [circleci] added
1 parent 81c6ee3 commit a608c38

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.circleci/config.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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: /.*/

0 commit comments

Comments
 (0)