Checkout Config
checks:
php: true
filter:
excluded_paths:
- tests/*
- vendor/*
build:
environment:
php:
version: 7.2
pecl_extensions:
- xdebug
tests:
before:
- 'sudo apt-get update'
- 'sudo apt-get install -y pdftk wget git'
- 'DIR=$(pwd)'
- 'cd /'
- 'sudo wget "https://go.dev/dl/go1.22.1.linux-amd64.tar.gz"'
- 'sudo tar xzf go1.22.1.linux-amd64.tar.gz'
- 'sudo git clone https://github.com/pdfcpu/pdfcpu /root/pdfcpu'
- 'sudo bash -c "cd /root/pdfcpu/cmd/pdfcpu && /go/bin/go install"'
- 'sudo cp ~/go/bin/pdfcpu /usr/bin/pdfcpu'
- 'cd "$DIR"'
override:
-
command: 'vendor/bin/phpunit --coverage-clover=clover.xml'
coverage:
file: 'clover.xml'
format: 'clover'
Repository Config
build:
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
tests: true
filter:
excluded_paths:
- 'tests/*'
checks:
php: true
coding_style:
php:
spaces:
around_operators:
concatenation: true