]> git.mxchange.org Git - friendica.git/blobdiff - .drone.yml
Friendica now requires PHP 7.3 or above
[friendica.git] / .drone.yml
index 00bd46dbdabe89346523c770ea909d90d4b1e7c1..99692d32cf1ee67ec9d98c497400f3586fa1ddf4 100644 (file)
@@ -146,7 +146,7 @@ steps:
     volumes:
       - name: cache
         path: /tmp/cache
-  - name: Test Friendica
+  - name: Recreate database.sql
     image: friendicaci/php7.4:php7.4.18
     environment:
       MYSQL_HOST: "mariadb"
@@ -164,25 +164,31 @@ steps:
       - if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
       - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
       - php ./bin/console.php dbstructure dumpsql > database.sql
-  - name: Codecov
-    image: plugins/codecov
-    when:
-      repo:
-        - friendica/friendica
-    settings:
-      token:
-        from_secret: codecov-token
-      files:
-        - clover.xml
   - name: Check database.sql
-    image: alpine
+    image: alpine/git
     commands:
       - git update-index --refresh
       - git diff-index --quiet HEAD --
       - if [[ $? -ne 0 ]]; then
-        echo "database.sql mismatch.";
-        exit 1;
+          echo "database.sql mismatch.";
+          exit 1;
         fi
+
+services:
+  - name: mariadb
+    image: mariadb:latest
+    environment:
+      MYSQL_ALLOW_EMPTY_PASSWORD: "true"
+      MYSQL_DATABASE: "test"
+      MYSQL_PASSWORD: "test"
+      MYSQL_USER: "test"
+    tmpfs:
+      - /var/lib/mysql
+
+volumes:
+  - name: cache
+    host:
+      path: /tmp/drone-cache
 ---
 kind: pipeline
 type: docker