]> granicus.if.org Git - php/commitdiff
Run Symfony tests in per-component
authorNicolas Grekas <nicolas.grekas@gmail.com>
Mon, 25 May 2020 11:33:50 +0000 (13:33 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 28 May 2020 12:08:27 +0000 (14:08 +0200)
azure/community_job.yml

index 19d43ef651a9f4399692aa89c422440f6a09967f..0d9f9bf92b8bb57e40a3b066ddd4f0c96fdd6bae 100644 (file)
@@ -71,10 +71,15 @@ jobs:
         export USE_ZEND_ALLOC=0
         export USE_TRACKED_ALLOC=1
         export ASAN_OPTIONS=exitcode=139
-        php ./phpunit --exclude-group tty,benchmark,intl-data,transient
-        if [ $? -gt 128 ]; then
-          exit 1
-        fi
+        export SYMFONY_DEPRECATIONS_HELPER=max[total]=999
+        X=0
+        for component in $(find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -printf '%h\n'); do
+          php ./phpunit $component --exclude-group tty,benchmark,intl-data,transient;
+          if [ $? -gt 128 ]; then
+            X=1;
+          fi
+        done
+        exit $X
       displayName: 'Test Symfony'
       condition: or(succeeded(), failed())
     - script: |