Files
PHP.Composer.dotenv/bitbucket-pipelines.yml

26 lines
654 B
YAML
Raw Normal View History

# Template PHP Build
# This template allows you to validate your PHP application.
# The workflow allows running tests and code linting on the default branch.
2023-01-11 17:00:57 +09:00
image: composer:2.1
pipelines:
default:
- parallel:
- step:
name: Test
script:
2023-01-11 17:06:24 +09:00
- composer require phpunit/phpunit:^9
2023-01-11 17:00:57 +09:00
- ./vendor/bin/phpunit ./test/phpUnitTests
caches:
- composer
- step:
name: Lint
script:
2023-01-11 17:06:24 +09:00
- composer require overtrue/phplint:8.1.x-dev
2023-01-11 17:00:57 +09:00
- ./vendor/bin/phplint ./ --exclude=vendor
caches:
2023-01-11 17:00:57 +09:00
- composer