File tree Expand file tree Collapse file tree 2 files changed +23
-11
lines changed Expand file tree Collapse file tree 2 files changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ services:
22
22
23
23
gitlab :
24
24
restart : always
25
- image : sameersbn/gitlab:10.2.5
25
+ image : sameersbn/gitlab:${GITLAB_VERSION}
26
26
depends_on :
27
27
- redis
28
28
- postgresql
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -eu
3
3
PKG_LIST=$1
4
- pushd ci
5
- docker-compose up -d
6
4
7
- until curl -sSf http://localhost:10080/users/sign_in > /dev/null
8
- do
9
- sleep 10
5
+ versions=( \
6
+ 10.2.5 \
7
+ 10.8.4 \
8
+ 11.0.2 \
9
+ )
10
+
11
+ for version in " ${versions[@]} " ; do
12
+ pushd ci
13
+ printf " Testing with GitLab $version \n\n"
14
+ GITLAB_VERSION=${version} docker-compose up -d
15
+ until curl -sSf http://localhost:10080/explore > /dev/null
16
+ do
17
+ sleep 10
18
+ done
19
+ popd
20
+ printf " Testing...\n\n"
21
+ go test -v -covermode=count -coverprofile=profile.cov -timeout=1200s ${PKG_LIST}
22
+ pushd ci
23
+ printf " Teardown...\n\n"
24
+ GITLAB_VERSION=${version} docker-compose down -v --rmi ' local'
25
+ popd
10
26
done
11
- popd
12
- go test -v -covermode=count -coverprofile=profile.cov -timeout=1200s ${PKG_LIST}
13
- pushd ci
14
- docker-compose down -v
15
- popd
27
+
You can’t perform that action at this time.
0 commit comments