Skip to content
9 changes: 4 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
version: 2
jobs:
build:
working_directory: /go/src/github.com/solidnerd/gogpat
docker:
- image: circleci/golang:1.10
machine: true
steps:
- checkout
- restore_cache:
keys:
- v1-pkg-cache
- setup_remote_docker
- run: make ci
- run: ls -alh
- run: pwd
- run: ci/test.sh $(go list ./... | grep -v vendor)
- save_cache:
key: v1-pkg-cache
paths:
Expand Down
23 changes: 12 additions & 11 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@ set -eu
PKG_LIST=$1

versions=( \
10.2.5 \
10.8.4 \
11.0.2 \
11.1.4 \
11.2.3 \
11.3.4 \
)

for version in "${versions[@]}"; do
pushd ci
printf "Testing with GitLab $version\n\n"
GITLAB_VERSION=${version} docker-compose up -d
until curl -sSf http://localhost:10080/explore > /dev/null
do
sleep 10
done
popd
# pushd ci
# printf "Testing with GitLab $version\n\n"
# GITLAB_VERSION=${version} docker-compose up -d
# until curl -sSf http://localhost:10080/explore > /dev/null
# do
# sleep 10
# done
# popd
echo "$PKG_LIST"
printf "Testing...\n\n"
go test -v -covermode=count -coverprofile=profile.cov -timeout=1200s ${PKG_LIST}
pushd ci
Expand Down