forked from algolia/algoliasearch-client-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (47 loc) · 1.27 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
language: php
branches:
only:
- master
- 1.x
matrix:
include:
- php: 5.3
dist: precise
env: LEGACY_HTTP=true # Don't install Guzzle to test PHP53HttpClient
- php: 5.6
dist: trusty
sudo: required
- php: 7.2
dist: trusty
sudo: required
- php: 7.2
dist: trusty
sudo: required
env: LEGACY_HTTP=true # Don't install Guzzle to test PHP53HttpClient
- php: 7.3
dist: trusty
sudo: required
- php: 7.3
dist: trusty
sudo: required
env: LEGACY_HTTP=true # Don't install Guzzle to test PHP53HttpClient
- php: hhvm
dist: trusty
sudo: required
- php: nightly
dist: trusty
sudo: required
allow_failures:
- php: hhvm
- php: nightly
cache:
directories:
- $HOME/.composer/cache
install:
- composer install
- if [ "$LEGACY_HTTP" != "true" ]; then composer require guzzlehttp/guzzle ; fi
before_script:
- wget https://alg.li/algolia-keys && chmod +x algolia-keys
script:
- if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [[ ! "$TRAVIS_PULL_REQUEST_SLUG" =~ ^algolia\/ ]]; then eval $(./algolia-keys export) && php vendor/bin/phpunit -v --testsuite Unit,Definition,Community; else php vendor/bin/phpunit -v; fi
- php tests/tests-no-composer.php