Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cc41e57

Browse filesBrowse files
Tweak travis and appveyor for Symfony 4
1 parent 0c3616c commit cc41e57
Copy full SHA for cc41e57

File tree

2 files changed

+9
-30
lines changed
Filter options

2 files changed

+9
-30
lines changed

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
+4-18Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ env:
1919

2020
matrix:
2121
include:
22-
# Use the newer stack for HHVM as HHVM does not support Precise anymore since a long time and so Precise has an outdated version
23-
- php: hhvm-stable
24-
sudo: required
25-
dist: trusty
26-
group: edge
2722
- php: 7.1.0
2823
- php: 7.1
2924
env: deps=high
@@ -82,8 +77,8 @@ before_install:
8277
echo extension = ldap.so >> $INI
8378
echo extension = redis.so >> $INI
8479
echo extension = memcached.so >> $INI
85-
[[ $PHP = 5.* ]] && echo extension = mongo.so >> $INI
86-
[[ $PHP = 5.* ]] && echo extension = memcache.so >> $INI
80+
echo extension = mongodb.so >> $INI
81+
echo extension = apcu.so >> $INI
8782
8883
# Matrix lines for intermediate PHP versions are skipped for pull requests
8984
if [[ ! $deps && ! $PHP = ${MIN_PHP%.*} && ! $PHP = hhvm* && $TRAVIS_PULL_REQUEST != false ]]; then
@@ -96,19 +91,10 @@ before_install:
9691
- |
9792
# Install sigchild-enabled PHP to test the Process component on the lowest PHP matrix line
9893
if [[ ! $deps && $PHP = ${MIN_PHP%.*} && ! -d php-$MIN_PHP/sapi ]]; then
99-
wget http://museum.php.net/php5/php-$MIN_PHP.tar.bz2 -O - | tar -xj &&
94+
wget http://php.net/get/php-$MIN_PHP.tar.bz2/from/this/mirror -O - | tar -xj &&
10095
(cd php-$MIN_PHP && ./configure --enable-sigchild --enable-pcntl && make -j2)
10196
fi
10297
103-
- |
104-
# Install extra PHP extensions
105-
if [[ ! $skip && $PHP = 5.* ]]; then
106-
([[ $deps ]] || tfold ext.symfony_debug 'cd src/Symfony/Component/Debug/Resources/ext && phpize && ./configure && make && echo extension = $(pwd)/modules/symfony_debug.so >> '"$INI") &&
107-
tfold ext.apcu4 'echo yes | pecl install -f apcu-4.0.11'
108-
elif [[ ! $skip && $PHP = 7.* ]]; then
109-
tfold ext.apcu5 'echo yes | pecl install -f apcu-5.1.6'
110-
fi
111-
11298
- |
11399
# Load fixtures
114100
if [[ ! $skip ]]; then
@@ -172,7 +158,7 @@ install:
172158
echo "$COMPONENTS" | parallel --gnu "tfold {} $PHPUNIT_X {}"
173159
tfold tty-group $PHPUNIT --group tty
174160
if [[ $PHP = ${MIN_PHP%.*} ]]; then
175-
echo -e "1\\n0" | xargs -I{} bash -c "tfold src/Symfony/Component/Process.sigchild{} SYMFONY_DEPRECATIONS_HELPER=weak ENHANCE_SIGCHLD={} php-$MIN_PHP/sapi/cli/php .phpunit/phpunit-4.8/phpunit --colors=always src/Symfony/Component/Process/"
161+
echo -e "1\\n0" | xargs -I{} bash -c "tfold src/Symfony/Component/Process.sigchild{} SYMFONY_DEPRECATIONS_HELPER=weak ENHANCE_SIGCHLD={} php-$MIN_PHP/sapi/cli/php ./phpunit --colors=always src/Symfony/Component/Process/"
176162
fi
177163
fi
178164
}

‎appveyor.yml

Copy file name to clipboardExpand all lines: appveyor.yml
+5-12Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,15 @@ init:
1111
- SET COMPOSER_NO_INTERACTION=1
1212
- SET SYMFONY_DEPRECATIONS_HELPER=strict
1313
- SET ANSICON=121x90 (121x90)
14-
- SET SYMFONY_PHPUNIT_VERSION=4.8
1514
- REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f
1615

1716
install:
1817
- mkdir c:\php && cd c:\php
19-
- appveyor DownloadFile https://raw.githubusercontent.com/symfony/binary-utils/master/cacert.pem
20-
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php-7.1.3-Win32-VC14-x64.zip
18+
- appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-7.1.0-Win32-VC14-x86.zip
19+
- 7z x php-7.1.0-Win32-VC14-x86.zip -y >nul
2120
- cd ext
22-
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php_apcu-4.0.10-5.5-nts-vc11-x86.zip
23-
- 7z x php_apcu-4.0.10-5.5-nts-vc11-x86.zip -y >nul
24-
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php_memcache-3.0.8-5.5-nts-vc11-x86.zip
25-
- 7z x php_memcache-3.0.8-5.5-nts-vc11-x86.zip -y >nul
21+
- appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/apcu/5.1.8/php_apcu-5.1.8-7.1-ts-vc14-x86.zip
22+
- 7z x hp_apcu-5.1.8-7.1-ts-vc14-x86.zip -y >nul
2623
- cd ..
2724
- copy /Y php.ini-development php.ini-min
2825
- echo serialize_precision=14 >> php.ini-min
@@ -35,13 +32,11 @@ install:
3532
- echo extension=php_openssl.dll >> php.ini-max
3633
- echo extension=php_apcu.dll >> php.ini-max
3734
- echo apc.enable_cli=1 >> php.ini-max
38-
- echo extension=php_memcache.dll >> php.ini-max
3935
- echo extension=php_intl.dll >> php.ini-max
4036
- echo extension=php_mbstring.dll >> php.ini-max
4137
- echo extension=php_fileinfo.dll >> php.ini-max
4238
- echo extension=php_pdo_sqlite.dll >> php.ini-max
4339
- echo extension=php_curl.dll >> php.ini-max
44-
- echo curl.cainfo=c:\php\cacert.pem >> php.ini-max
4540
- copy /Y php.ini-max php.ini
4641
- cd c:\projects\symfony
4742
- IF NOT EXIST composer.phar (appveyor DownloadFile https://getcomposer.org/download/1.3.0/composer.phar)
@@ -54,10 +49,8 @@ install:
5449

5550
test_script:
5651
- SET X=0
57-
- cd c:\php && 7z x php-7.1.3-Win32-VC14-x64.zip -y >nul && copy /Y php.ini-min php.ini
58-
- cd c:\projects\symfony
59-
- php phpunit src\Symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
6052
- SET SYMFONY_PHPUNIT_SKIPPED_TESTS=phpunit.skipped
53+
- copy /Y c:\php\php.ini-min c:\php\php.ini
6154
- php phpunit src\Symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
6255
- copy /Y c:\php\php.ini-max c:\php\php.ini
6356
- php phpunit src\Symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.