forked from duzun/hQuery.php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (48 loc) · 1.5 KB
/
.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
51
52
53
54
55
56
language: php
php:
- 7.3
- 7.2
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
- nightly
- hhvm
matrix:
include:
- php: 5.3
dist: precise
fast_finish: true
allow_failures:
- php: 5.3
- php: nightly
- php: hhvm
dist: trusty
sudo: false
cache:
directories:
- tests/data/
- $HOME/.composer/cache
install:
# remove composer lock to allow installing env speciffic versions
- rm -f composer.lock
# flags to pass to install
- flags="--prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"
# install dependencies using system provided composer binary
- if php -r "die(+(version_compare(PHP_VERSION,'5.5')!=1));"; then composer install $flags; else composer dump-autoload; fi
# Update some dependencies to this PHP version
- composer require --dev symfony/css-selector symfony/dom-crawler
# Some dependencies are available for PHP >= 5.5 only
- if php -r "die(+version_compare(PHP_VERSION,'5.5','<'));"; then composer require --dev php-http/mock-client php-http/discovery guzzlehttp/psr7; fi
# Remove some tools not required for testing
- composer remove --dev apigen/apigen
script: phpunit tests/
deploy:
provider: npm
email: [email protected]
api_key:
secure: UeTmKdjg0MEmy8iK0ZmlmNww+hytHQoEkh7uhssV2Pizq2sSEKki9m64v7xe35Kwk38TcbMvrZkwtim/ZnZt1JJ2LOw8Ogz88OVviqAfkHOe2VRH8SrP3NpRFGFWLZ0JmvKGkvCLiDkLHiz+vSegUXDPwyGdpS932lyxJ5U3ntE=
on:
tags: true
repo: hquery.php