Skip to content

Commit 8ddc575

Browse files
committed
更新测试
1 parent 2ce69ce commit 8ddc575

File tree

4 files changed

+5
-17
lines changed

4 files changed

+5
-17
lines changed

.travis.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
sudo: required
21
language: php
2+
os: linux
33

4-
matrix:
4+
jobs:
55
include:
66
- php: '7.2'
77
env: SWOOLE_VERSION="v4.5.2"
@@ -28,7 +28,7 @@ matrix:
2828
- php: nightly
2929

3030
services:
31-
- redis-server
31+
- redis
3232

3333
addons:
3434
apt:
@@ -46,22 +46,15 @@ install:
4646
cd ../;
4747
fi
4848
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
49-
- wget https://github.com/swoole/swoole-src/archive/$SWOOLE_VERSION.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure --enable-openssl --enable-http2 && make -j && make install && cd -
50-
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
49+
- wget https://github.com/swoole/swoole-src/archive/$SWOOLE_VERSION.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure --enable-openssl --enable-http2 && make -j && make install && cd - && echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
5150

5251
before_script:
5352
- if [[ $DISABLE_XDEBUG != false ]]; then
5453
phpenv config-rm xdebug.ini;
5554
fi
56-
- curl -sSfL -o ~/.phpenv/versions/$(phpenv version-name)/bin/phpunit https://phar.phpunit.de/phpunit-7.phar
57-
- export TEST_PHPUNIT_PATH=~/.phpenv/versions/$(phpenv version-name)/bin/phpunit
58-
- php ./.travis/composer-no-phpunit.php
5955
- composer update
6056
- php --ri swoole
6157

6258
script:
6359
- ./tests/run
64-
65-
after_failure:
66-
- php ./.travis/output-server-log.php
6760

.travis/composer-no-phpunit.php

Lines changed: 0 additions & 4 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"require-dev": {
1010
"yurunsoft/imi": "dev-dev",
11-
"phpunit/phpunit": "^7",
11+
"phpunit/phpunit": ">=7",
1212
"yurunsoft/ide-helper": "~1.0"
1313
},
1414
"autoload": {

tests/phpunit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<testsuites>
1212
<testsuite name="queue">
1313
<directory>Queue</directory>
14-
<file>*.php</file>
1514
</testsuite>
1615
</testsuites>
1716
</phpunit>

0 commit comments

Comments
 (0)