forked from php-mock/php-mock-prophecy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (31 loc) · 789 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
env:
- PROPHECY_VERSION=dev-master
- PROPHECY_VERSION=~1.6.0
- PROPHECY_VERSION=~1.5.0
- PROPHECY_VERSION=~1.4.0
- PROPHECY_VERSION=~1.3.0
- PROPHECY_VERSION=~1.2.0
- PROPHECY_VERSION=~1.1.0
- PROPHECY_VERSION=~1.0.0
php:
- 7.1
- 7.0
- 5.6
- hhvm
matrix:
fast_finish: true
allow_failures:
- php: hhvm
install:
- composer require phpspec/prophecy:${PROPHECY_VERSION} squizlabs/php_codesniffer phpmd/phpmd cundd/test-flight
script:
- vendor/bin/phpunit
- vendor/bin/test-flight README.md
- vendor/bin/test-flight classes/
- vendor/bin/phpcs --standard=PSR2 classes/ tests/
- vendor/bin/phpmd classes/ text cleancode,codesize,controversial,design,naming,unusedcode