mirror of https://github.com/grafana/grafana
parent
87a794fe0a
commit
4b16cd6cc8
@ -1,5 +1,5 @@ |
||||
#!/bin/bash |
||||
|
||||
cd /tmp |
||||
cd /tmp || exit 1 |
||||
tar xfJ x86_64-centos6-linux-gnu.tar.xz |
||||
tar xfJ osxcross.tar.xz |
||||
|
@ -1,3 +1,3 @@ |
||||
#!/bin/bash |
||||
cd /oss |
||||
cd /oss || exit 1 |
||||
make |
||||
|
@ -1,17 +1,10 @@ |
||||
#!/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 |
||||
} |
||||
|
||||
# shellcheck source=./scripts/helpers/exit-if-fail.sh |
||||
source "$(dirname "$0")/helpers/exit-if-fail.sh" |
||||
|
||||
export GRAFANA_TEST_DB=mysql |
||||
|
||||
time for d in $(go list ./pkg/...); do |
||||
exit_if_fail go test -tags=integration $d |
||||
done |
||||
exit_if_fail go test -tags=integration "$d" |
||||
done |
||||
|
@ -1,17 +1,10 @@ |
||||
#!/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 |
||||
} |
||||
|
||||
# shellcheck source=./scripts/helpers/exit-if-fail.sh |
||||
source "$(dirname "$0")/helpers/exit-if-fail.sh" |
||||
|
||||
export GRAFANA_TEST_DB=postgres |
||||
|
||||
time for d in $(go list ./pkg/...); do |
||||
exit_if_fail go test -tags=integration $d |
||||
done |
||||
exit_if_fail go test -tags=integration "$d" |
||||
done |
||||
|
@ -0,0 +1,13 @@ |
||||
#!/bin/bash |
||||
|
||||
function exit_if_fail { |
||||
# shellcheck disable=SC2124 |
||||
command=$@ |
||||
echo "Executing '$command'" |
||||
eval "$command" |
||||
rc=$? |
||||
if [ $rc -ne 0 ]; then |
||||
echo "'$command' returned $rc." |
||||
exit $rc |
||||
fi |
||||
} |
Loading…
Reference in new issue