1 Star 1 Fork 16

鲲鹏/QueryPHP

forked from hunzhiwange/QueryPHP 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
小牛New 提交于 2020-07-21 22:48 . refactor(any): swoole version to 4.5.2
language: php
env:
global:
- MIN_PHP=7.4snapshot
- setup=stable
matrix:
include:
- php: 7.4
env: swoole_version="master"
- php: 7.4
env: test_coverage=true setup=lowest swoole_version="v4.5.2"
fast_finish: true
sudo: false
cache:
directories:
- $HOME/.composer/cache
services:
- redis-server
- mysql
before_install:
- mysql -e "create database IF NOT EXISTS test;" -uroot
- phpenv config-add build/redis.ini
- 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 && make -j$(nproc) && make install && cd - && rm -rf swoole
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- travis_retry composer self-update
- if [[ $test_coverage != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
install:
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi
# Some debug info is located here
- ls -al `$(phpenv which php-config) --extension-dir`
- $(phpenv which php) -v
- $(phpenv which php) -m
script:
- mkdir -p logs
- mkdir -p build/logs
- mkdir -p runtime/tests
- cp .env.phpunit.example .env.phpunit
- cp .env.example .env
- php leevel migrate:migrate -e env.phpunit
- php vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
after_success:
- if [[ $test_coverage == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v; fi
notifications:
email: false
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/garenx/queryphp.git
git@gitee.com:garenx/queryphp.git
garenx
queryphp
QueryPHP
master

搜索帮助