circle-test-cache-servers.sh 382 B

12345678910111213141516
  1. #!/bin/bash
  2. function exit_if_fail {
  3. command=$@
  4. echo "Executing '$command'"
  5. eval $command
  6. rc=$?
  7. if [ $rc -ne 0 ]; then
  8. echo "'$command' returned $rc."
  9. exit $rc
  10. fi
  11. }
  12. echo "running redis and memcache tests"
  13. time exit_if_fail go test -tags=redis ./pkg/infra/remotecache/...
  14. time exit_if_fail go test -tags=memcached ./pkg/infra/remotecache/...