forked from flint/Lurker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
31 lines (25 loc) · 922 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
php:
- 5.6
- 7.0
- 7.3
matrix:
include:
# Pyrus doesn't appear to be available on current Travis env.
#- php: 5.6
# env: INOTIFY_EXTENSION=pyrus
- php: 7.0
env: INOTIFY_EXTENSION=pecl
- php: 7.3
env: INOTIFY_EXTENSION=pecl
before_script:
## PHPUnit 5 runs well enough for php56-php73. For php74, may need to adjust.
- curl -sSfL -o ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
## Test builds with and without inotify.
- "if [ \"$INOTIFY_EXTENSION\" = \"pyrus\" ]; then pyrus install pecl/inotify && pyrus build pecl/inotify && echo \"extension=inotify.so\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi"
- "if [ \"$INOTIFY_EXTENSION\" = \"pecl\" ]; then pecl install inotify ; fi"
- "composer install --no-progress"