forked from josantonius/php-session
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
50 lines (39 loc) · 713 Bytes
/
Copy path.travis.yml
File metadata and controls
50 lines (39 loc) · 713 Bytes
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
sudo: false
cache:
directories:
- $HOME/.composer/cache
dist: trusty
branches:
only:
- master
git:
depth: 5
php:
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm
- nightly
matrix:
fast_finish: true
include:
- php: 7.1
env: PHPCS=PSR2
allow_failures:
- php: hhvm
- php: nightly
before_script:
- export PATH="./vendor/bin:$PATH"
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev
script:
- phpunit
- |
if [[ "$PHPCS" ]] ; then
phpcs --standard=phpcs.xml $(find . -name '*.php')
phpmd src,tests text ./phpmd.xml
fi
after_success:
- bash <(curl -s https://codecov.io/bash)