Skip to content
Snippets Groups Projects
Commit 65e42a69 authored by ale's avatar ale
Browse files

Fix db data load

parent 84b75ce6
Branches
No related tags found
1 merge request!469Run ci-test with actual data
Pipeline #85256 passed
......@@ -20,6 +20,6 @@ test:
script:
- dnf install -y mysql xz git
- git clone --depth=1 https://gitlab-ci-token:${CI_JOB_TOKEN}@git.autistici.org/ai3/testdata.git /tmp/testdata.$CI_JOB_ID
- xz -d /tmp/testdata.$CI_JOB_ID/noblogs/noblogs.sql.xz | mysql --user=root --password=rootpass --host=mysql noblogs
- with-container --expose=8080 --mount=type=bind,source=docker/test-config.json,destination=/etc/noblogs/config.json $IMAGE_TAG ./docker/test.sh
- xzcat /tmp/testdata.$CI_JOB_ID/noblogs/noblogs.sql.xz | mysql --user=root --password=rootpass --host=mysql noblogs
- with-container --expose=8080 --mount=type=bind,source=docker/test-config.json,destination=/etc/noblogs/config.json --mount=type=tmpfs,destination=/opt/noblogs/www/wp-content/blogs.dir --mount=type=tmpfs,destination=/opt/noblogs/www/wp-content/cache $IMAGE_TAG ./docker/test.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment