.circleci/config.yml
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
version: 2.1
orbs:
codecov: codecov/codecov@1.1.1
jobs:
build:
docker:
- image: circleci/php:7.2-node-browsers
steps:
- checkout
- run: sudo apt update
- run: sudo docker-php-ext-install zip
- run: composer install -n --prefer-dist
- run: wget https://github.com/infection/infection/releases/download/0.8.1/infection.phar
- run: wget https://github.com/infection/infection/releases/download/0.8.1/infection.phar.pubkey
- run: chmod +x infection.phar
- run: mkdir -p build/logs
- run: ./vendor/bin/phpunit -c phpunit.xml --testdox
- run: ./vendor/bin/phpstan analyse -c phpstan.neon
- run: ./infection.phar --min-msi=90 --min-covered-msi=100
- run: touch build/logs/infection-log.txt
- run: cat build/logs/infection-log.txt
- store_artifacts:
path: build/logs/clover.xml
- codecov/upload:
file: build/logs/clover.xml