As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 75f18461 authored by Patrick Bajao's avatar Patrick Bajao
Browse files

Merge branch 'id-using-gitlab-build-images' into 'main'

Use the images provided by Gitlab to run tests

See merge request https://gitlab.com/gitlab-org/gitlab-shell/-/merge_requests/698



Merged-by: default avatarPatrick Bajao <ebajao@gitlab.com>
Approved-by: default avatarPatrick Bajao <ebajao@gitlab.com>
Co-authored-by: default avatarIgor Drozdov <idrozdov@gitlab.com>
parents 9d97161d c370b782
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -10,6 +10,9 @@ include:
variables:
DOCKER_VERSION: "20.10.15"
BUNDLE_FROZEN: "true"
GO_VERSION: "1.18"
DEBIAN_VERSION: "bullseye"
RUBY_VERSION: "2.7"
workflow:
rules: &workflow_rules
Loading
Loading
@@ -21,7 +24,7 @@ workflow:
- if: '$CI_COMMIT_TAG'
default:
image: golang:1.14
image: registry.gitlab.com/gitlab-org/gitlab-build-images/debian-${DEBIAN_VERSION}-ruby-${RUBY_VERSION}-golang-${GO_VERSION}:git-2.36
tags:
- gitlab-org
Loading
Loading
@@ -38,12 +41,7 @@ default:
GITALY_CONNECTION_INFO: '{"address":"tcp://gitaly:8075", "storage":"default"}'
before_script:
# Set up the environment to run integration tests (still written in Ruby)
- apt-get update -qq && apt-get install -y ruby ruby-dev
- ruby -v
- export PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin
- gem install --force --bindir /usr/local/bin bundler -v 2.3.6
- bundle install
# Now set up to run the Golang tests
- make build
- cp config.yml.example config.yml
- go version
Loading
Loading
@@ -58,7 +56,6 @@ default:
tests:
extends: .test
image: golang:${GO_VERSION}
parallel:
matrix:
- GO_VERSION: ["1.17", "1.18", "1.19"]
Loading
Loading
@@ -68,7 +65,6 @@ tests:
race:
extends: .test
image: golang:1.18
script:
- make test_golang_race
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment