forked from BigBrotherTeam/BigBrother
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
45 lines (37 loc) · 926 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: php
git:
depth: false
php:
- 7.2
- 7.3
cache:
directories:
- $HOME/.composer/cache
- build/DevTools.phar
install:
- echo | pecl install channel://pecl.php.net/yaml-2.0.4
- git clone https://github.com/pmmp/pthreads.git
- pushd pthreads
- git checkout 1b7da492b944146fa9680f6399bd9c6c6c6095e0
- phpize
- ./configure
- make
- make install
- popd
- echo "extension=pthreads.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- composer install
before_script:
- find src/ -type f -name '*.php' | xargs -n 1 php -l
script:
- composer build
before_deploy:
- scripts/before_deploy
deploy:
provider: bintray
user: ${BINTRAY_USER}
key: ${BINTRAY_SECRET}
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_PHP_VERSION = 7.2 && $TRAVIS_PULL_REQUEST = false && $TRAVIS_BRANCH =~ ^(master|1.13.2|1.14.4|1.16.4)$
file: build/bintray.json