Skip to content
Snippets Groups Projects
Verified Commit 33444028 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: Update script for outdated dumps.

parent 6ff0ee58
No related branches found
No related tags found
2 merge requests!31ENH: Update script for outdated dumps.,!30Mariadb 10.11: New reserved keyword
Pipeline #55913 failed
...@@ -8,6 +8,7 @@ RUN apt-get update \ ...@@ -8,6 +8,7 @@ RUN apt-get update \
unzip \ unzip \
python3-lxml \ python3-lxml \
python3-pip \ python3-pip \
python3-pytest \
python3-sqlparse \ python3-sqlparse \
python3-sphinx \ python3-sphinx \
doxygen doxygen
......
# #
# This file is a part of the CaosDB Project. # This file is a part of the LinkAhead Project.
# #
# Copyright (C) 2018 Research Group Biomedical Physics, # Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen # Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Copyright (C) 2024 Indiscale GmbH <info@indiscale.com>
# Copyright (C) 2019 Henrik tom Wörden # Copyright (C) 2019 Henrik tom Wörden
# Copyright (C) 2024 Daniel Hornung <d.hornung@indiscale.com>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as # it under the terms of the GNU Affero General Public License as
...@@ -62,6 +64,13 @@ unittests-mariadb: ...@@ -62,6 +64,13 @@ unittests-mariadb:
script: script:
- make pipeline-test SQL_HOST=mariadb - make pipeline-test SQL_HOST=mariadb
# Run the dump update tests
test-dump-update:
tags: [ docker ]
stage: test
script:
- make test-dump-update
# Run the unit tests with MySQL 5 # Run the unit tests with MySQL 5
unittests-mysql-5: unittests-mysql-5:
tags: [ docker ] tags: [ docker ]
......
...@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### ### Added ###
- Script to update outdated database dumps.
### Changed ### ### Changed ###
### Deprecated ### ### Deprecated ###
......
...@@ -55,6 +55,10 @@ drop-%: ...@@ -55,6 +55,10 @@ drop-%:
test: test:
./utils/make_db test --fresh ./utils/make_db test --fresh
.PHONY: test-dump-update
test-dump-update:
pytest dump_updates
# Run tests with a database which is started in a Docker container # Run tests with a database which is started in a Docker container
.PHONY: test-docker .PHONY: test-docker
test-docker: test-docker:
......
/* /*
* This file is a part of the CaosDB Project. * This file is a part of the LinkAhead Project.
* *
* Copyright (C) 2020-2024 IndiScale GmbH <info@indiscale.com> * Copyright (C) 2020-2024 IndiScale GmbH <info@indiscale.com>
* Copyright (C) 2020,2023 Timm Fitschen <t.fitschen@indiscale.com> * Copyright (C) 2020,2023 Timm Fitschen <t.fitschen@indiscale.com>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment