Skip to content

Commit cecafb6

Browse files
committed
Add GitLab versions 11 and 10.X for testing
Signed-off-by: solidnerd <[email protected]>
1 parent f4052c2 commit cecafb6

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

ci/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222

2323
gitlab:
2424
restart: always
25-
image: sameersbn/gitlab:10.2.5
25+
image: sameersbn/gitlab:${GITLAB_VERSION}
2626
depends_on:
2727
- redis
2828
- postgresql

ci/test.sh

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
#!/bin/bash
22
set -eu
33
PKG_LIST=$1
4-
pushd ci
5-
docker-compose up -d
64

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
1026
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+

0 commit comments

Comments
 (0)