File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 5
5
- 5.5
6
6
- 5.6
7
7
- 7.0
8
+ - 7.1
8
9
- hhvm
9
10
10
- install : ./travis-init.sh
11
+ sudo : false
12
+
13
+ addons :
14
+ apt :
15
+ packages :
16
+ - libevent-dev # Used by 'event' and 'libevent' PHP extensions
17
+
18
+ cache :
19
+ directories :
20
+ - $HOME/.composer/cache/files
21
+
22
+ install :
23
+ - ./travis-init.sh
24
+ - composer install
11
25
12
26
script :
13
27
- ./vendor/bin/phpunit --coverage-text
Original file line number Diff line number Diff line change @@ -5,14 +5,12 @@ set -o pipefail
5
5
if [[ " $TRAVIS_PHP_VERSION " != " hhvm" &&
6
6
" $TRAVIS_PHP_VERSION " != " hhvm-nightly" ]]; then
7
7
8
- # install "libevent" (used by 'event' and 'libevent' PHP extensions)
9
- sudo apt-get install -y libevent-dev
10
-
11
8
# install 'event' PHP extension
12
9
echo " yes" | pecl install event
13
10
14
11
# install 'libevent' PHP extension (does not support php 7)
15
- if [[ " $TRAVIS_PHP_VERSION " != " 7.0" ]]; then
12
+ if [[ " $TRAVIS_PHP_VERSION " != " 7.0" &&
13
+ " $TRAVIS_PHP_VERSION " != " 7.1" ]]; then
16
14
curl http://pecl.php.net/get/libevent-0.1.0.tgz | tar -xz
17
15
pushd libevent-0.1.0
18
16
phpize
@@ -24,7 +22,8 @@ if [[ "$TRAVIS_PHP_VERSION" != "hhvm" &&
24
22
fi
25
23
26
24
# install 'libev' PHP extension (does not support php 7)
27
- if [[ " $TRAVIS_PHP_VERSION " != " 7.0" ]]; then
25
+ if [[ " $TRAVIS_PHP_VERSION " != " 7.0" &&
26
+ " $TRAVIS_PHP_VERSION " != " 7.1" ]]; then
28
27
git clone --recursive https://github.com/m4rw3r/php-libev
29
28
pushd php-libev
30
29
phpize
@@ -36,5 +35,3 @@ if [[ "$TRAVIS_PHP_VERSION" != "hhvm" &&
36
35
fi
37
36
38
37
fi
39
-
40
- composer install --dev --prefer-source
You can’t perform that action at this time.
0 commit comments