-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
44 lines (40 loc) · 1.06 KB
/
.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
language: php
matrix:
include:
- os: linux
dist: trusty
sudo: required
php: 7.0
- os: linux
dist: trusty
sudo: required
php: 7.1
- os: osx
sudo: required
language: generic
env:
- _PHP: 'php70'
- os: osx
sudo: required
language: generic
env:
- _PHP: 'php71'
addons:
apt:
packages:
- gearman-job-server
- libgearman-dev
- gearman-tools
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/dupes ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/versions ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/homebrew-php ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gearman ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start gearman ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install $_PHP ; fi
script:
- phpize
- ./configure
- make
- REPORT_EXIT_STATUS=1 make test