mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
build steps for cache servers
This commit is contained in:
parent
daa3b17951
commit
dbc1315d6f
@ -56,6 +56,23 @@ jobs:
|
||||
name: postgres integration tests
|
||||
command: './scripts/circle-test-postgres.sh'
|
||||
|
||||
cache-server-test:
|
||||
docker:
|
||||
- image: circleci/golang:1.11.5
|
||||
- image: circleci/redis:4-alpine
|
||||
- image: memcached
|
||||
working_directory: /go/src/github.com/grafana/grafana
|
||||
steps:
|
||||
- checkout
|
||||
#- run: sudo apt update
|
||||
#- run: sudo apt install -y postgresql-client
|
||||
- run: dockerize -wait tcp://127.0.0.1:11211 -timeout 120s
|
||||
- run: dockerize -wait tcp://127.0.0.1:6739 -timeout 120s
|
||||
#- run: 'PGPASSWORD=grafanatest psql -p 5432 -h 127.0.0.1 -U grafanatest -d grafanatest -f devenv/docker/blocks/postgres_tests/setup.sql'
|
||||
- run:
|
||||
name: cache server tests
|
||||
command: './scripts/circle-test-cache-servers.sh'
|
||||
|
||||
codespell:
|
||||
docker:
|
||||
- image: circleci/python
|
||||
@ -554,4 +571,5 @@ workflows:
|
||||
- gometalinter
|
||||
- mysql-integration-test
|
||||
- postgres-integration-test
|
||||
- cache-server-test
|
||||
filters: *filter-not-release-or-master
|
||||
|
17
scripts/circle-test-cache-servers.sh
Executable file
17
scripts/circle-test-cache-servers.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
function exit_if_fail {
|
||||
command=$@
|
||||
echo "Executing '$command'"
|
||||
eval $command
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]; then
|
||||
echo "'$command' returned $rc."
|
||||
exit $rc
|
||||
fi
|
||||
}
|
||||
|
||||
echo "running redis and memcache tests"
|
||||
#set -e
|
||||
#time for d in $(go list ./pkg/...); do
|
||||
time exit_if_fail go test -tags="redis memcached" ./pkg/infra/distcache/...
|
||||
#done
|
Loading…
Reference in New Issue
Block a user