Skip to content

Commit 3de04ac

Browse files
authored
Rethink TravisCI configuration
1 parent da54484 commit 3de04ac

File tree

1 file changed

+30
-35
lines changed

1 file changed

+30
-35
lines changed

.travis.yml

Lines changed: 30 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,37 @@
1-
dist: xenial
2-
lang: php
3-
compiler:
4-
- gcc
5-
cache:
6-
directories:
7-
- /home/travis/.phpenv/
8-
env:
9-
global:
10-
- MEMPROF_CFLAGS='-Wall -Werror'
1+
# TravisCI configuration for arnaud-lb/php-memory-profiler
2+
3+
if: "branch = v2"
4+
5+
language: "php"
6+
os:
7+
- "linux"
8+
dist: "bionic"
9+
10+
addons:
11+
apt:
12+
packages:
13+
- "libjudy-dev"
14+
- "libonig-dev"
15+
- "libzip-dev"
16+
17+
php:
18+
- "8.0"
19+
- "7.4"
20+
- "7.3"
21+
- "7.2
22+
- "7.1"
23+
1124
jobs:
12-
allow_failures:
13-
- env: PHP_VERSION=8.0snapshot
1425
fast_finish: true
15-
include:
16-
- env: PHP_VERSION=8.0snapshot
17-
- env: PHP_VERSION=7.4.12
18-
- env: PHP_VERSION=7.3.24
19-
- env: PHP_VERSION=7.2.19
20-
- env: PHP_VERSION=7.1.33
2126

2227
before_install:
23-
- |
24-
# Use a non-zts PHP build
25-
set -e
26-
sudo apt-get install libjudy-dev libonig-dev libzip-dev
27-
if ! [ -f $HOME/.phpenv/memprof-travis-cached ]; then
28-
echo "Building PHP"
29-
git clone git://github.com/php-build/php-build.git $HOME/.phpenv/plugins/php-build
30-
phpenv install --verbose --force $PHP_VERSION
31-
rm -rf $HOME/.phpenv/plugins/php-build
32-
touch $HOME/.phpenv/memprof-travis-cached
33-
else
34-
echo "PHP already built"
35-
fi
36-
phpenv rehash
37-
phpenv global $PHP_VERSION
28+
- "phpenv config-rm xdebug.ini"
3829

3930
install:
40-
- .travis/build.sh
31+
- "phpize"
32+
- "CFLAGS='-Wall -Werror' ./configure"
33+
- "make"
34+
4135
script:
42-
- .travis/test.sh
36+
- "php --ri memprof"
37+
- "REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=\"$(realpath \"$(which php)\")\" php run-tests.php -s -q --show-diff"

0 commit comments

Comments
 (0)