-
Notifications
You must be signed in to change notification settings - Fork 675
feat: integrate pytest-gitlab #3313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
1819181
538b2c9
5e0756f
ef7827a
d01664b
ce8f3e6
b5048a3
8b043eb
2f65f23
3711b46
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ networks: | |
|
|
||
| services: | ||
| gitlab: | ||
| image: '${GITLAB_IMAGE}:${GITLAB_TAG}' | ||
| image: '${GITLAB_IMAGE:-gitlab/gitlab-ee}:${GITLAB_TAG:-latest}' | ||
| container_name: 'gitlab-test' | ||
| hostname: 'gitlab.test' | ||
| privileged: true # Just in case https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/1350 | ||
|
|
@@ -36,15 +36,15 @@ services: | |
| - -c | ||
| - ruby /create_license.rb && /assets/wrapper | ||
| volumes: | ||
| - ${PWD}/tests/functional/fixtures/create_license.rb:/create_license.rb | ||
| - ./create_license.rb:/create_license.rb | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this definitely work (i.e. it will be relative to the compose config file) regardless of where the tests are executed from? Just making sure, I know that different compose implementations have different behavior 🙇 We had some issues in the past when we tried to migrate to compose v2, so just wanted to check. |
||
| ports: | ||
| - '8080:80' | ||
| - '2222:22' | ||
| networks: | ||
| - gitlab-network | ||
|
|
||
| gitlab-runner: | ||
| image: '${GITLAB_RUNNER_IMAGE}:${GITLAB_RUNNER_TAG}' | ||
| image: '${GITLAB_RUNNER_IMAGE:-gitlab/gitlab-runner}:${GITLAB_RUNNER_TAG:-latest}' | ||
| container_name: 'gitlab-runner-test' | ||
| depends_on: | ||
| - gitlab | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| apt-get update | ||
| apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common | ||
| curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - | ||
| apt-get update | ||
| echo \ | ||
| "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu \ | ||
| $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | ||
| tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
| apt-get update | ||
| apt-get install -y docker-ce docker-compose | ||
| usermod -aG docker gitlab-runner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we maybe extract the preparation changes (everything that can be applied without moving the plugin) into a separate PR that we merge first? Just so we can focus on integration aspects here. Let me know otherwise I can also try that on my end.