forked from mebjas/CSRF-Protector-PHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (40 loc) · 943 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
46
47
48
49
50
language: php
php:
- "5.6"
- "5.5"
- "5.4"
- "7.0"
- "7.1"
- hhvm
- nightly
- "5.3"
matrix:
allow_failures:
- php: nightly
- php: hhvm
- php: "5.3"
os:
- linux
dist: trusty
install:
# Install composer packages, will also trigger dump-autoload
- composer install --no-interaction
# Install coveralls.phar
- wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
- chmod +x coveralls.phar
- php coveralls.phar --version
before_script:
- mkdir -p build/logs
- ls -al
script:
- mkdir -p build/logs
- if [ $(phpenv version-name) = 'hhvm' ]; then echo 'xdebug.enable=1' >> /etc/hhvm/php.ini; fi
- phpunit --stderr --coverage-clover build/logs/clover.xml
after_script:
- php vendor/bin/coveralls -v
after_success:
- travis_retry php coveralls.phar -v
cache:
directories:
- vendor
- $HOME/.cache/composer