Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
thomasDOTwtf
hub
Commits
c4f9ea2d
Commit
c4f9ea2d
authored
7 months ago
by
Roang
Browse files
Options
Downloads
Patches
Plain Diff
Update integration tests in gitlab-ci.yml
Use tox to run the integration tests.
parent
6222e4dc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+28
-17
28 additions, 17 deletions
.gitlab-ci.yml
with
28 additions
and
17 deletions
.gitlab-ci.yml
+
28
−
17
View file @
c4f9ea2d
...
...
@@ -105,7 +105,6 @@ default:
}
EOF
generate_css
:
extends
:
-
.default-rules
...
...
@@ -275,7 +274,7 @@ build_test:
stage
:
container-test
needs
:
-
build_test
image
:
python:3.11-bookworm
image
:
$CI_REGISTRY_IMAGE/build_image:$CI_PIPELINE_ID
variables
:
FF_NETWORK_PER_BUILD
:
1
POSTGRES_DB
:
image-test
...
...
@@ -303,33 +302,44 @@ build_test:
-
curl --max-time 8 --retry 3 --fail ${BASE_URL}/.well-known/version
-
curl --max-time 3 --retry 3 --fail ${BASE_URL}/.well-known/health
test_
image_api
:
test_
backoffice
:
extends
:
.test_image
variables
:
SERVE_API
:
"
yes"
SERVE_BACKOFFICE
:
"
yes"
BACKOFFICE_BASE_URL
:
/
script
:
# check that the profile can be queried
-
curl --max-time 3 --retry 3 --fail ${BASE_URL}/api/me
# get a list of all conferences
-
curl --max-time 3 --retry 3 --fail ${BASE_URL}/api/info
# check that the api is avilable
-
curl --max-time 3 --retry 3 --fail ${BASE_URL}/
# run integration tests
-
cd tests
-
p
ython3 -m unit
test
-v
-
pdm install -d --no-editable -G dev
-
p
dm run tox -e live-
test
test_
image_frontend
:
test_
api
:
extends
:
.test_image
variables
:
SERVE_FRONTEND
:
"
yes"
SERVE_API
:
"
yes"
SERVE_BACKOFFICE
:
"
no"
API_BASE_URL
:
/
script
:
# check that the api is avilable
-
curl --max-time 3 --retry 3 --fail ${BASE_URL}/
# run integration tests
-
pdm install -d --no-editable -G dev
-
pdm run tox -e live-test
test_frontend
:
extends
:
.test_image
variables
:
SERVE_FRONTEND
:
"
yes"
SERVE_API
:
"
no"
DJANGO_LOAD_FIXTURE
:
"
core/fixtures/anhalter.json"
SELECTED_CONFERENCE_ID
:
"
017c0749-a2ea-4f86-92cd-e60b4508dd98"
script
:
# check that
something
is being served
at all
# check that
the plainui
is being served
-
curl --max-time 3 --retry 3 --fail ${BASE_URL}/en/index
# run integration tests
-
cd tests
-
p
ython3 -m unit
test
-v
-
pdm install -d --no-editable -G dev
-
p
dm run tox -e live-
test
test_nginx_static
:
extends
:
...
...
@@ -352,8 +362,9 @@ test_nginx_static:
stage
:
publish
needs
:
-
build_release
-
test_image_frontend
-
test_image_api
-
test_backoffice
-
test_frontend
-
test_api
-
test_nginx_static
image
:
...
...
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