-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
60 lines (53 loc) · 1.63 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
60
language: php
compiler:
- gcc
addons:
apt:
packages:
- valgrind
php:
- 7.0
- 7.1
- 7.2
- nightly
env:
global:
- REPORT_EXIT_STATUS=1
- CONF="without-jitfu-coverage"
- RULE="all"
- DEF="-q --show-diff"
- MEMCHECK="-m --show-mem"
matrix:
- OPCACHE=0 TEST_PHP_ARGS="$DEF"
- OPCACHE=1 TEST_PHP_ARGS="$DEF"
- OPCACHE=0 TEST_PHP_ARGS="$DEF $MEMCHECK"
- OPCACHE=0 TEST_PHP_ARGS="$DEF" CONF="with-jitfu-coverage" RULE="jitfu-test-coverage-travis"
matrix:
allow_failures:
- php: nightly
env: OPCACHE=0 TEST_PHP_ARGS="$DEF $MEMCHECK"
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y pkg-config
- test $CONF != "with-jitfu-coverage" || pip install --user cpp-coveralls
before_script:
- echo "variables_order=EGPCS" >> $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/php.ini
- echo > $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/xdebug.ini
- echo "extension=jitfu.so" > $HOME/.phpenv/versions/$TRAVIS_PHP_VERSION/etc/conf.d/jitfu.ini
- git clone --depth 1 git://git.sv.gnu.org/libjit.git $HOME/libjit-src
- cd $HOME/libjit-src
- mkdir $HOME/libjit
- rm -rf m4
- pkg-config --version
- autoreconf -i -v
- ./configure --prefix=$HOME/libjit
- make
- make install
script:
- cd $TRAVIS_BUILD_DIR
- phpize
- wget -q -O run-tests.php https://raw.githubusercontent.com/php/php-src/master/run-tests.php
- ./configure --$CONF --with-jitfu=$HOME/libjit
- make $RULE
- make install
- php run-tests.php -P