-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask.yml
42 lines (42 loc) · 1014 Bytes
/
task.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
tasks:
test:
name: Run PHPUnit
description: runs PHPUnit tests
commands:
- vendor/bin/phpunit
output: false
environment:
XDEBUG_MODE: "off"
coverage:
name: Generate code coverage
description: Generates the code coverage
commands:
- vendor/bin/phpunit --coverage-html coverage
environment:
XDEBUG_MODE: "coverage"
phpstan:
name: Run PHPStan
description: Runs PHPStan to find errors in code
commands:
- vendor/bin/phpstan analyse src
release:
name: Create release
description: Creates a release and updates version.txt
commands:
- bin/release
output: true
build:
name: Build PHAR archive
description: Builds the PHAR
commands:
- php -d phar.readonly=Off bin/build
depends:
- test
- phpstan
deploy:
name: Copy updater.phar to local/bin
description: Deploys the PHAR file
depends:
- build
commands:
- cp bin/updater.phar /usr/local/bin/updater