-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (26 loc) · 1.04 KB
/
.travis.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
language: php
git:
depth: 5
matrix:
include:
- php: 7.4
- php: 7.3
env: COVERAGE=on
dist: trusty
- php: 7.3
env: STYLECHECK=on
install:
- composer self-update
- if [[ "$STYLECHECK" != "on" ]]; then composer require phpunit/phpunit:^7 phug/split --no-update; fi;
- if [[ "$STYLECHECK" = "on" ]]; then composer require squizlabs/php_codesniffer --no-update; fi;
- composer install
- if [[ "$STYLECHECK" != "on" ]]; then mkdir -p tests/Phug/Ast && vendor/bin/split copy https://github.com/phug-php/phug.git tests/Phug/Ast --filters=tests/Phug/Ast/*; fi;
script:
- if [[ "$STYLECHECK" != "on" && "$COVERAGE" != "on" ]]; then vendor/bin/phpunit; fi;
- if [[ "$COVERAGE" = "on" ]]; then vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml; fi;
- if [[ "$STYLECHECK" = "on" ]]; then vendor/bin/phpcs --ignore=*.js Ast AstException.php; fi;
notifications:
slack: phug:nzXFnxhU14RWK2EQSDL0u08z
addons:
code_climate:
repo_token: ad15651f6a4a6f30636086bf95fe3d34137018edaf5266898549fe13e88bd984