Improve performance

- Add caching
- Remove HTML report
This commit is contained in:
Philipp Holzer 2019-09-27 00:00:42 +02:00
parent 98de833d88
commit cc215524da
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
2 changed files with 60 additions and 30 deletions

View File

@ -21,8 +21,13 @@ services:
MYSQL_USER: friendica MYSQL_USER: friendica
MYSQL_PASSWORD: friendica MYSQL_PASSWORD: friendica
MYSQL_DATABASE: friendica MYSQL_DATABASE: friendica
tmpfs: volumes:
- /var/lib/mysql - name: cache
path: /var/lib/mysql
volumes:
- name: cache
temp: {}
trigger: trigger:
branch: branch:
@ -37,27 +42,32 @@ kind: pipeline
name: mysql8.0-php7.2 name: mysql8.0-php7.2
steps: steps:
- name: mysql8.0-php7.2 - name: mysql8.0-php7.2
image: friendicaci/php7.2:php7.2.22 image: friendicaci/php7.2:php7.2.22
commands: commands:
- NOCOVERAGE=true ./autotest.sh mysql - NOCOVERAGE=true ./autotest.sh mysql
environment: environment:
MYSQL_USERNAME: friendica MYSQL_USERNAME: friendica
MYSQL_PASSWORD: friendica MYSQL_PASSWORD: friendica
MYSQL_DATABASE: friendica MYSQL_DATABASE: friendica
MYSQL_HOST: mysql MYSQL_HOST: mysql
services: services:
- name: mysql - name: mysql
image: mysql:8.0 image: mysql:8.0
command: [ "--default-authentication-plugin=mysql_native_password" ] command: [ "--default-authentication-plugin=mysql_native_password" ]
environment: environment:
MYSQL_ROOT_PASSWORD: friendica MYSQL_ROOT_PASSWORD: friendica
MYSQL_USER: friendica MYSQL_USER: friendica
MYSQL_PASSWORD: friendica MYSQL_PASSWORD: friendica
MYSQL_DATABASE: friendica MYSQL_DATABASE: friendica
tmpfs: volumes:
- /var/lib/mysql - name: cache
path: /var/lib/mysql
volumes:
- name: cache
temp: {}
trigger: trigger:
branch: branch:
@ -91,8 +101,13 @@ services:
MYSQL_USER: friendica MYSQL_USER: friendica
MYSQL_PASSWORD: friendica MYSQL_PASSWORD: friendica
MYSQL_DATABASE: friendica MYSQL_DATABASE: friendica
tmpfs: volumes:
- /var/lib/mysql - name: cache
path: /var/lib/mysql
volumes:
- name: cache
temp: {}
trigger: trigger:
branch: branch:
@ -130,8 +145,13 @@ services:
MYSQL_USER: friendica MYSQL_USER: friendica
MYSQL_PASSWORD: friendica MYSQL_PASSWORD: friendica
MYSQL_DATABASE: friendica MYSQL_DATABASE: friendica
tmpfs: volumes:
- /var/lib/mysql - name: cache
path: /var/lib/mysql
volumes:
- name: cache
temp: {}
trigger: trigger:
branch: branch:
@ -164,8 +184,13 @@ services:
MYSQL_USER: friendica MYSQL_USER: friendica
MYSQL_PASSWORD: friendica MYSQL_PASSWORD: friendica
MYSQL_DATABASE: friendica MYSQL_DATABASE: friendica
tmpfs: volumes:
- /var/lib/mysql - name: cache
path: /var/lib/mysql
volumes:
- name: cache
temp: {}
trigger: trigger:
branch: branch:
@ -198,8 +223,13 @@ services:
MYSQL_USER: friendica MYSQL_USER: friendica
MYSQL_PASSWORD: friendica MYSQL_PASSWORD: friendica
MYSQL_DATABASE: friendica MYSQL_DATABASE: friendica
tmpfs: volumes:
- /var/lib/mysql - name: cache
path: /var/lib/mysql
volumes:
- name: cache
temp: {}
trigger: trigger:
branch: branch:

View File

@ -187,7 +187,7 @@ function execute_tests {
COVER='' COVER=''
if [ -z "$NOCOVERAGE" ]; then if [ -z "$NOCOVERAGE" ]; then
COVER="--coverage-clover tests/autotest-clover.xml --coverage-html tests/coverage-html" COVER="--coverage-clover tests/autotest-clover.xml"
else else
echo "No coverage" echo "No coverage"
fi fi