Skip to content

Commit 08b4a11

Browse files
authored
Update .travis.yml
1 parent 4931ba0 commit 08b4a11

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ cache:
3030

3131
before_install:
3232
- |
33-
# Using PHP ZTS
33+
# Using PHP non-ZTS
3434
PHP_VERSION="$(php -r 'echo PHP_VERSION;')"
35-
if ! [ -f "${HOME}/.phpenv/php-zts-built" ]; then
35+
if ! [ -f "${HOME}/.phpenv/php-non-zts-built" ]; then
3636
echo "Building PHP ZTS ${PHP_VERSION} ..."
3737
git clone git://github.com/php-build/php-build.git "${HOME}/.phpenv/plugins/php-build"
3838
phpenv install --verbose --force "${PHP_VERSION}"
3939
rm -rf "${HOME}/.phpenv/plugins/php-build"
40-
touch "${HOME}/.phpenv/php-zts-built"
40+
touch "${HOME}/.phpenv/php-non-zts-built"
4141
fi
4242
phpenv rehash
4343
phpenv global "${PHP_VERSION}"
@@ -47,7 +47,9 @@ before_install:
4747
install:
4848
- "phpize"
4949
- "CFLAGS=\"-Wall -Werror\" ./configure"
50-
- "make"
50+
- "make -j \"$(nproc)\""
51+
- "echo \"extension = $(realpath modules/memprof.so)\" >modules/memprof.ini"
52+
- "phpenv config-add modules/memprof.ini"
5153

5254
script:
5355
- "php --ri memprof"

0 commit comments

Comments
 (0)