]> git.mxchange.org Git - friendica.git/blobdiff - .woodpecker/.phpunit.yml
Only use posts with wanted languages for subscribed tags
[friendica.git] / .woodpecker / .phpunit.yml
index 7cb91eff765082224e7012103b46808b791225ea..325a2d9c1c42f5c6be19c0cb5fba603d40f2ef3a 100644 (file)
@@ -1,18 +1,26 @@
 matrix:
   include:
     - PHP_MAJOR_VERSION: 7.3
-      PHP_VERSION: 7.3.28
+      PHP_VERSION: 7.3.33
     - PHP_MAJOR_VERSION: 7.4
-      PHP_VERSION: 7.4.18
+      PHP_VERSION: 7.4.33
     - PHP_MAJOR_VERSION: 8.0
-      PHP_VERSION: 8.0.5
+      PHP_VERSION: 8.0.30
+    - PHP_MAJOR_VERSION: 8.1
+      PHP_VERSION: 8.1.23
+    - PHP_MAJOR_VERSION: 8.2
+      PHP_VERSION: 8.2.11
 
-pipeline:
+# This forces PHP Unit executions at the "opensocial" labeled location (because of much more power...)
+labels:
+  location: opensocial
+
+steps:
   php-lint:
     image: php:${PHP_MAJOR_VERSION}
     group: lint
     commands:
-      - ./bin/composer.phar run lint
+      - find . -name \*.php -not -path './vendor/*' -not -path './view/asset/*' -print0 | xargs -0 -n1 php -l
   restore_cache:
     image: meltwater/drone-cache:dev
     settings:
@@ -61,24 +69,23 @@ pipeline:
       - if [ "${PHP_MAJOR_VERSION}" = "7.4" -a "${CI_REPO}" = "friendica/friendica" ]; then
           phpenmod xdebug;
           export XDEBUG_MODE=coverage;
-          phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml;
+          phpunit --configuration tests/phpunit.xml -d memory_limit=-1 --coverage-clover clover.xml;
         else
-          phpunit --configuration tests/phpunit.xml;
+          phpunit --configuration tests/phpunit.xml -d memory_limit=-1;
         fi
-
   codecov:
-    image: plugins/codecov
+    image: friendicaci/codecov
     when:
       matrix:
         PHP_MAJOR_VERSION: 7.4
-        PHP_VERSION: 7.4.18
+        PHP_VERSION: 7.4.33
       repo:
         - friendica/friendica
-    settings:
-      token:
-        from_secret: codecov-token
-      files:
-        - clover.xml
+    commands:
+      - codecov -R '.' -Z -f 'clover.xml'
+    secrets:
+      - source: codecov-token
+        target: codecov_token
 
 services:
   mariadb: