Run sqlite on tmpfs
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
kolaente 2021-08-11 23:57:54 +02:00
parent fbaea21f31
commit 747c2041ff
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -7,6 +7,15 @@ workspace:
path: src/code.vikunja.io/api path: src/code.vikunja.io/api
volumes: volumes:
- name: tmp-sqlite-unit
temp:
medium: memory
- name: tmp-sqlite-integration
temp:
medium: memory
- name: tmp-sqlite-migration
temp:
medium: memory
- name: tmp-mysql-unit - name: tmp-mysql-unit
temp: temp:
medium: memory medium: memory
@ -148,9 +157,12 @@ steps:
depends_on: [ test-migration-prepare, build ] depends_on: [ test-migration-prepare, build ]
environment: environment:
VIKUNJA_DATABASE_TYPE: sqlite VIKUNJA_DATABASE_TYPE: sqlite
VIKUNJA_DATABASE_PATH: ./vikunja-migration-test.db VIKUNJA_DATABASE_PATH: /db/vikunja-migration-test.db
VIKUNJA_LOG_DATABASE: stdout VIKUNJA_LOG_DATABASE: stdout
VIKUNJA_LOG_DATABASELEVEL: debug VIKUNJA_LOG_DATABASELEVEL: debug
volumes:
- name: tmp-sqlite-migration
path: /db
commands: commands:
- ./vikunja-unstable-linux-amd64 migrate - ./vikunja-unstable-linux-amd64 migrate
# Run the migrations from the binary build in the step before # Run the migrations from the binary build in the step before
@ -215,6 +227,10 @@ steps:
GOPROXY: 'https://goproxy.kolaente.de' GOPROXY: 'https://goproxy.kolaente.de'
VIKUNJA_TESTS_USE_CONFIG: 1 VIKUNJA_TESTS_USE_CONFIG: 1
VIKUNJA_DATABASE_TYPE: sqlite VIKUNJA_DATABASE_TYPE: sqlite
VIKUNJA_DATABASE_PATH: /db/vikunja-test.db
volumes:
- name: tmp-sqlite-unit
path: /db
commands: commands:
- ./mage-static test:unit - ./mage-static test:unit
depends_on: [ fetch-tags, mage ] depends_on: [ fetch-tags, mage ]
@ -274,6 +290,10 @@ steps:
GOPROXY: 'https://goproxy.kolaente.de' GOPROXY: 'https://goproxy.kolaente.de'
VIKUNJA_TESTS_USE_CONFIG: 1 VIKUNJA_TESTS_USE_CONFIG: 1
VIKUNJA_DATABASE_TYPE: sqlite VIKUNJA_DATABASE_TYPE: sqlite
VIKUNJA_DATABASE_PATH: /db/vikunja-test.db
volumes:
- name: tmp-sqlite-integration
path: /db
commands: commands:
- ./mage-static test:integration - ./mage-static test:integration
depends_on: [ fetch-tags, mage ] depends_on: [ fetch-tags, mage ]
@ -836,6 +856,6 @@ steps:
- failure - failure
--- ---
kind: signature kind: signature
hmac: 55f7d520199b724bee073d8111a044f946cafd290cf41aa6a9e8e018fcc93586 hmac: 673ff632397ce656d984182c8a007ff7d96c530ffc69fea824b45c12813ba4e5
... ...