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:
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
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -eu
33PKG_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
1026done
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