Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Issue 336: Fix tests and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Carcel committed Jan 26, 2022
1 parent 3a941b5 commit b3bd207
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ version: 2.1

executor-config: &executor-config
machine:
image: ubuntu-2004:202111-01
image: ubuntu-2004:202111-02
docker_layer_caching: true
environment:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
Expand Down Expand Up @@ -75,15 +76,15 @@ jobs:
- run:
name: Run API static analysis
command: make analyse-api-code
- run:
name: Run coupling detector
command: make api-coupling
# - run:
# name: Run coupling detector
# command: make api-coupling
- run:
name: Run PHP mess detector
command: make phpmd
- run:
name: Run API unit tests
command: make api-unit-tests IO="--format=junit" > api/reports/unit_tests.xml
command: make api-unit-tests IO="--log-junit reports/unit_tests.xml"
- run:
name: Run API acceptance tests in memory
command: make api-acceptance-tests-in-memory IO="-f junit -o reports/acceptance_in_memory"
Expand Down
2 changes: 1 addition & 1 deletion api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"phpstan/phpstan-symfony": "^1.0",
"phpstan/phpstan-webmozart-assert": "^1.0",
"phpunit/phpunit": "^9.5",
"thecodingmachine/phpstan-strict-rules": "^1.0"
"thecodingmachine/phpstan-safe-rules": "^1.0"
},
"config": {
"optimize-autoloader": true,
Expand Down
3 changes: 3 additions & 0 deletions api/config/services_in_memory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ services:

App\Tests\Fixtures\:
resource: '../tests/fixtures/*'

App\Tests\Integration\:
resource: '../tests/integration/*'
3 changes: 3 additions & 0 deletions api/config/services_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ services:
autowire: true
autoconfigure: true

App\Tests\Acceptance\:
resource: '../tests/acceptance/*'

App\Tests\Fixtures\:
resource: '../tests/fixtures/*'

Expand Down

0 comments on commit b3bd207

Please sign in to comment.