forked from q2a/question2answer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (32 loc) · 926 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
os: linux
dist: trusty
language: php
php:
- '5.4'
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
notifications:
email:
on_success: change
on_failure: change
before_script:
# PHP_CodeSniffer
- curl -L -o phpcs.phar https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.4.2/phpcs.phar
# PHPUnit - manually download old version so that it works on PHP 7
- curl -L -o phpunit.phar https://phar.phpunit.de/phpunit-4.8.35.phar
# Basic config required for PHPUnit
- cp qa-tests/phpunit-qa-config.php qa-config.php
script:
# PHP_CodeSniffer
- php phpcs.phar --report=emacs --extensions=php --standard=qa-tests/phpcs/ruleset.xml .
- php phpcs.phar --report=emacs --extensions=php --standard=qa-tests/phpcs/ruleset-strict.xml qa-src/
# PHPUnit
- php phpunit.phar --bootstrap qa-tests/autoload.php qa-tests
cache:
directories:
- "$HOME/.composer/cache/files"
git:
depth: 5