]> git.mxchange.org Git - friendica.git/commitdiff
Improve performance
authorPhilipp Holzer <admin+github@philipp.info>
Thu, 26 Sep 2019 22:00:42 +0000 (00:00 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Mon, 30 Sep 2019 12:03:16 +0000 (14:03 +0200)
- Add caching
- Remove HTML report

.drone.yml
autotest.sh

index 5c5eca2c9dcd0c0f83cbdcebebfd086f65bf913d..4ccc6bfce7e944c7625fa37cdb8be9646f56c7f5 100644 (file)
@@ -21,8 +21,13 @@ services:
     MYSQL_USER: friendica
     MYSQL_PASSWORD: friendica
     MYSQL_DATABASE: friendica
-  tmpfs:
-    - /var/lib/mysql
+  volumes: 
+    - name: cache
+      path: /var/lib/mysql
+
+volumes:
+- name: cache
+  temp: {}
 
 trigger:
   branch:
@@ -37,27 +42,32 @@ kind: pipeline
 name: mysql8.0-php7.2
 
 steps:
-    - name: mysql8.0-php7.2
-      image: friendicaci/php7.2:php7.2.22
-      commands:
-          - NOCOVERAGE=true ./autotest.sh mysql
-      environment:
-          MYSQL_USERNAME: friendica
-          MYSQL_PASSWORD: friendica
-          MYSQL_DATABASE: friendica
-          MYSQL_HOST: mysql
+- name: mysql8.0-php7.2
+  image: friendicaci/php7.2:php7.2.22
+  commands:
+    - NOCOVERAGE=true ./autotest.sh mysql
+  environment:
+    MYSQL_USERNAME: friendica
+    MYSQL_PASSWORD: friendica
+    MYSQL_DATABASE: friendica
+    MYSQL_HOST: mysql
 
 services:
-    - name: mysql
-      image: mysql:8.0
-      command: [ "--default-authentication-plugin=mysql_native_password" ]
-      environment:
-          MYSQL_ROOT_PASSWORD: friendica
-          MYSQL_USER: friendica
-          MYSQL_PASSWORD: friendica
-          MYSQL_DATABASE: friendica
-      tmpfs:
-          - /var/lib/mysql
+- name: mysql
+  image: mysql:8.0
+  command: [ "--default-authentication-plugin=mysql_native_password" ]
+  environment:
+    MYSQL_ROOT_PASSWORD: friendica
+    MYSQL_USER: friendica
+    MYSQL_PASSWORD: friendica
+    MYSQL_DATABASE: friendica
+  volumes:
+    - name: cache
+      path: /var/lib/mysql
+
+volumes:
+  - name: cache
+    temp: {}
 
 trigger:
   branch:
@@ -91,8 +101,13 @@ services:
       MYSQL_USER: friendica
       MYSQL_PASSWORD: friendica
       MYSQL_DATABASE: friendica
-  tmpfs:
-      - /var/lib/mysql
+  volumes:
+    - name: cache
+      path: /var/lib/mysql
+
+volumes:
+  - name: cache
+    temp: {}
 
 trigger:
   branch:
@@ -130,8 +145,13 @@ services:
       MYSQL_USER: friendica
       MYSQL_PASSWORD: friendica
       MYSQL_DATABASE: friendica
-  tmpfs:
-      - /var/lib/mysql
+  volumes:
+    - name: cache
+      path: /var/lib/mysql
+
+volumes:
+  - name: cache
+    temp: {}
 
 trigger:
   branch:
@@ -164,8 +184,13 @@ services:
       MYSQL_USER: friendica
       MYSQL_PASSWORD: friendica
       MYSQL_DATABASE: friendica
-  tmpfs:
-      - /var/lib/mysql
+  volumes:
+    - name: cache
+      path: /var/lib/mysql
+
+volumes:
+  - name: cache
+    temp: {}
 
 trigger:
   branch:
@@ -198,8 +223,13 @@ services:
       MYSQL_USER: friendica
       MYSQL_PASSWORD: friendica
       MYSQL_DATABASE: friendica
-  tmpfs:
-      - /var/lib/mysql
+  volumes:
+    - name: cache
+      path: /var/lib/mysql
+
+volumes:
+  - name: cache
+    temp: {}
 
 trigger:
   branch:
index ee5675b9b56eb45c3ea6a44aae37691207385820..6da6e2101b6b6e5ecc05ab4ed59c5d033cce31d1 100755 (executable)
@@ -187,7 +187,7 @@ function execute_tests {
 
     COVER=''
     if [ -z "$NOCOVERAGE" ]; then
-      COVER="--coverage-clover tests/autotest-clover.xml --coverage-html tests/coverage-html"
+      COVER="--coverage-clover tests/autotest-clover.xml"
     else
       echo "No coverage"
     fi