Skip to content

Commit

Permalink
Merge pull request #9 from DragonBe/dragonbe/adding-mutation-testing
Browse files Browse the repository at this point in the history
Dragonbe/adding mutation testing
  • Loading branch information
DragonBe authored Dec 31, 2018
2 parents 6daaf1e + aebc08e commit 5becf6b
Showing 1 changed file with 32 additions and 5 deletions.
37 changes: 32 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,43 @@ jobs:
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: composer install -n --prefer-dist
- run:
name: Installing Composer
command: composer install -n --prefer-dist

- run:
name: Create artifacts directory
command: mkdir -p build/logs/coverage/coverage-xml

- save_cache:
paths:
- ./vendor
key: v1-dependencies-{{ checksum "composer.json" }}

# run tests!
- run: cp phpcs.xml.dist phpcs.xml
- run: ./vendor/bin/phpunit --configuration=phpunit.xml.dist
- run: ./vendor/bin/phpcs
- run:
name: Create a CodeSniffer configuration file
command: cp phpcs.xml.dist phpcs.xml

- run:
name: Perform unit tests
command: ./vendor/bin/phpunit --configuration=phpunit.xml.dist

- store_test_results:
path: build/logs

- store_artifacts:
path: build/logs

- run:
name: Check coding standards
command: ./vendor/bin/phpcs

# For some reason infection is not executed correctly
# - run: ./vendor/bin/infection --configuration=infection.json
- run:
name: Copying the junit files to coverage for Infection to run
command: cp build/logs/logfile.xml build/logs/coverage/phpunit.junit.xml

- run:
name: Execute mutation testing
command: ./vendor/bin/infection --configuration=infection.json.dist --coverage=build/logs/coverage

0 comments on commit 5becf6b

Please sign in to comment.