@@ -47,46 +47,14 @@ jobs:
47
47
echo opcache.enable_cli=1 >> /etc/php.d/opcache.ini
48
48
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
49
49
displayName: 'Install Build'
50
- - script : |
51
- git clone https://github.com/laravel/framework.git --branch=master --depth=1
52
- cd framework
53
- php7.3 /usr/bin/composer install --no-progress
54
- export USE_ZEND_ALLOC=0
55
- sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php
56
- # Avoid test using exit(), which thus leaks.
57
- # We can use USE_TRACKED_ALLOC=1 if more of these show up.
58
- sed -i "s/function_exists('pcntl_fork')/false/" tests/Filesystem/FilesystemTest.php
59
- php vendor/bin/phpunit
60
- displayName: 'Test Laravel'
61
- - script : |
62
- git clone https://github.com/symfony/symfony.git --depth=1
63
- cd symfony
64
- php7.3 /usr/bin/composer install --no-progress
65
- php7.3 ./phpunit install
66
- export USE_ZEND_ALLOC=0
67
- export USE_TRACKED_ALLOC=1
68
- export ASAN_OPTIONS=exitcode=139
69
- php ./phpunit --exclude-group tty,benchmark,intl-data,transient
70
- if [ $? -gt 128 ]; then
71
- exit 1
72
- fi
73
- displayName: 'Test Symfony'
74
- condition: or(succeeded(), failed())
75
- - script : |
76
- git clone https://github.com/amphp/amp.git --branch=master --depth=1
77
- cd amp
78
- php /usr/bin/composer install --no-progress --ignore-platform-reqs
79
- export USE_ZEND_ALLOC=0
80
- sed -i 's/$exit = true/$exit = false/g' vendor/phpunit/phpunit/src/TextUI/Command.php
81
- php vendor/bin/phpunit
82
- displayName: 'Test Amphp'
83
- condition: or(succeeded(), failed())
84
50
- script : |
85
51
php7.3 /usr/bin/composer create-project symfony/symfony-demo symfony_demo --no-progress
86
52
cd symfony_demo
87
53
export USE_ZEND_ALLOC=0
88
54
export USE_TRACKED_ALLOC=1
89
55
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php
90
- php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php -r ''
56
+ cat var/cache/dev/App_KernelDevDebugContainer.preload.php
57
+ php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php
58
+ echo $?
91
59
displayName: 'Symfony Preloading'
92
60
condition: or(succeeded(), failed())
0 commit comments