-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
45 lines (34 loc) · 1001 Bytes
/
.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
37
38
39
40
41
42
43
44
45
language: php
php:
- 5.6
- 7.0
- hhvm
- hhvm-nightly
matrix:
allow_failures:
- php: hhvm-nightly
install:
# Update Composer
- travis_retry composer self-update
# Install Nette Tester
- travis_retry composer install --no-interaction --prefer-source -o
script:
# Run linter
- vendor/bin/parallel-lint app tests
# Run Code Sniffer
#
# n => Do not print warnings (shortcut for --warning-severity=0)
# s => Show sniff codes in all reports
# p => Show progress of the run
- vendor/bin/phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 -nsp app tests
# Show Nette Tester environment
- vendor/bin/tester tests/cases -s -p php -i
# Run Nette Tester
- vendor/bin/tester tests/cases -s -p php
after_failure:
# Print *.actual content
- 'for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done'
sudo: false
cache:
directories:
- $HOME/.composer/cache