forked from php-build/php-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (52 loc) · 1.26 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
sudo: false
osx_image: xcode8
os:
- linux
- osx
addons:
apt:
packages:
- libmcrypt-dev
- libtidy-dev
- libicu-dev
- php5-cli
- re2c
env:
global:
- PHP_BUILD_EXTRA_MAKE_ARGUMENTS="-j2"
matrix:
- DEFINITION=5.2.17
- DEFINITION=5.3.29
- DEFINITION=5.4.45
- DEFINITION=5.5.38
- DEFINITION=5.6.32
- DEFINITION=7.0.26
- DEFINITION=7.1.12
- DEFINITION=7.2.0RC6
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" &&
"$DEFINITION" =~ ^("5.2.".*|"5.3."[0-6])$ ]]; then
export PHP_BUILD_CONFIGURE_OPTS="--with-libdir=lib/x86_64-linux-gnu"
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$DEFINITION" =~ ^("5."[23]|"5.4."([0-9]|1[0-4])$) ]]; then
export LIBS="-lssl -lcrypto"
fi
brew update
brew install re2c libmcrypt openssl libxml2 icu4c
brew upgrade pkg-config
if [[ "$DEFINITION" == "5.2.17" ]]; then
brew install mysql
fi
fi
install:
- git clone https://github.com/sstephenson/bats
- bats/install.sh $HOME
- export PATH=$HOME/bin:$HOME/libexec:$PATH
- bats --version
script:
- ./run-tests.sh $DEFINITION
after_failure:
- cat $(ls -r /tmp/php-build*.log | head -n 1)