-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (30 loc) · 1.09 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
33
34
35
36
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 && \
vendor/bin/split copy https://github.com/phug-php/phug.git tests/Phug/ --filters=tests/Phug/DependencyInjectionTest.php,tests/Phug/AbstractDependencyInjectionTest.php;
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; fi;
notifications:
slack: phug:nzXFnxhU14RWK2EQSDL0u08z
addons:
code_climate:
repo_token: 4c27d7efe84c820a751151e32eb3850b5238eadf335953720f2e1da7a5633144