File tree Expand file tree Collapse file tree 1 file changed +30
-35
lines changed Expand file tree Collapse file tree 1 file changed +30
-35
lines changed Original file line number Diff line number Diff line change 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
+
11
24
jobs :
12
- allow_failures :
13
- - env : PHP_VERSION=8.0snapshot
14
25
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
21
26
22
27
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"
38
29
39
30
install :
40
- - .travis/build.sh
31
+ - " phpize"
32
+ - " CFLAGS='-Wall -Werror' ./configure"
33
+ - " make"
34
+
41
35
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"
You can’t perform that action at this time.
0 commit comments