Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
noblogs-composer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
noblogs-composer
Commits
7f8aed91
Commit
7f8aed91
authored
3 months ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Run ci-test with actual data
parent
649a086e
Branches
Branches containing commit
No related tags found
1 merge request
!469
Run ci-test with actual data
Pipeline
#85230
failed
3 months ago
Stage: build
Stage: container-test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+8
-1
8 additions, 1 deletion
.gitlab-ci.yml
docker/test-config.json
+34
-0
34 additions, 0 deletions
docker/test-config.json
with
42 additions
and
1 deletion
.gitlab-ci.yml
+
8
−
1
View file @
7f8aed91
...
...
@@ -4,12 +4,19 @@ include: "https://git.autistici.org/pipelines/containers/raw/master/common.yml"
test
:
stage
:
container-test
image
:
registry.git.autistici.org/pipelines/images/test/float-podman-runner:master
services
:
-
docker.io/library/mysql:latest
tags
:
[
podman
]
variables
:
APACHE_PORT
:
8080
SITE_URL
:
"
http://localhost:8080"
MYSQL_DATABASE
:
noblogs
MYSQL_ROOT_PASSWORD
:
rootpass
before_script
:
-
echo -n "$CI_JOB_TOKEN" | podman login -u gitlab-ci-token --password-stdin $CI_REGISTRY
script
:
-
with-container --expose=8080 $IMAGE_TAG ./docker/test.sh
-
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends mysql-client xz-utils git
-
git clone --depth=1 https://gitlab-ci-token:${CI_JOB_TOKEN}/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
This diff is collapsed.
Click to expand it.
docker/test-config.json
0 → 100644
+
34
−
0
View file @
7f8aed91
{
"secrets"
:
{
"auth_key"
:
"be51a7fb3f4c3924c3a351a834ae605f"
,
"secure_auth_key"
:
"be51a7fb3f4c3924c3a351a834ae605f"
,
"logged_in_key"
:
"be51a7fb3f4c3924c3a351a834ae605f"
,
"nonce_key"
:
"be51a7fb3f4c3924c3a351a834ae605f"
,
"auth_salt"
:
"be51a7fb3f4c3924c3a351a834ae605f"
,
"secure_auth_salt"
:
"be51a7fb3f4c3924c3a351a834ae605f"
,
"logged_in_salt"
:
"be51a7fb3f4c3924c3a351a834ae605f"
,
"nonce_salt"
:
"be51a7fb3f4c3924c3a351a834ae605f"
},
"db_config"
:
{
"backends"
:
{
"backend_1"
:
{
"host"
:
"mysql"
,
"port"
:
3306
,
"user"
:
"root"
,
"password"
:
"rootpass"
,
"name"
:
"noblogs"
}
},
"is_master"
:
true
,
"master"
:
{
"host"
:
"mysql"
,
"port"
:
3306
,
"user"
:
"root"
,
"password"
:
"rootpass"
,
"name"
:
"noblogs"
}
},
"debug"
:
false
,
"debug_cookie_name"
:
"__unused__"
,
"local_backend_name"
:
"backend_1"
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment