-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (26 loc) · 850 Bytes
/
.travis.yml
File metadata and controls
32 lines (26 loc) · 850 Bytes
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
language: php
php:
- '7.1'
- '7.2'
- '7.3'
- '7.4'
install:
# - echo 'no' | pecl install -f redis
- wget https://github.com/swoole/swoole-src/archive/v4.4.19.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 -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
before_script:
- composer config -g process-timeout 900 && composer update
- phpenv config-rm xdebug.ini
script:
- composer test0
before_deploy:
- php -d phar.readonly=0 bin/swoftcli phar:pack -o=swoftcli.phar
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: swoftcli.phar
skip_cleanup: true
on:
tags: true
repo: swoft-cloud/swoft-cli
php: '7.2'