]> granicus.if.org Git - php/commitdiff
Improve Symfony test setup
authorNicolas Grekas <nicolas.grekas@gmail.com>
Tue, 3 Sep 2019 08:02:30 +0000 (10:02 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 11 Sep 2019 09:15:23 +0000 (11:15 +0200)
Perform PHPUnit installation under php7.3 -- which will also make
it work on master.

Also properly resolve the tty issue by specifying excluded groups
during the test run.

azure/community_job.yml

index 16efaed7fdf981f5c4690377c898cc920bd060ce..8a88b9db971d6851628204fd30c38fe6fa40c3d4 100644 (file)
@@ -60,11 +60,11 @@ jobs:
         git clone https://github.com/symfony/symfony.git --branch=master --depth=1
         cd symfony
         php7.3 /usr/bin/composer install --no-progress
+        php7.3 ./phpunit install
         export USE_ZEND_ALLOC=0
         export USE_TRACKED_ALLOC=1
         export ASAN_OPTIONS=exitcode=139
-        # Close stdin because we hang on some kind of tty test otherwise.
-        php ./phpunit 0<&-
+        php ./phpunit --exclude-group tty,benchmark,intl-data,transient
         if [ $? -gt 128 ]; then
           exit 1
         fi