From cc215524da37369bd4fad4a6885852569a2cb90e Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Fri, 27 Sep 2019 00:00:42 +0200 Subject: [PATCH] Improve performance - Add caching - Remove HTML report --- .drone.yml | 88 +++++++++++++++++++++++++++++++++++------------------ autotest.sh | 2 +- 2 files changed, 60 insertions(+), 30 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5c5eca2c9d..4ccc6bfce7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: diff --git a/autotest.sh b/autotest.sh index ee5675b9b5..6da6e2101b 100755 --- a/autotest.sh +++ b/autotest.sh @@ -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 -- 2.39.5