Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
c68da407
Commit
c68da407
authored
Feb 15, 2019
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run db tests in all packages
parent
0256a4dd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
2 deletions
+38
-2
.circleci/config.yml
+2
-2
scripts/circle-test-mysql.sh
+18
-0
scripts/circle-test-postgres.sh
+18
-0
No files found.
.circleci/config.yml
View file @
c68da407
...
...
@@ -35,7 +35,7 @@ jobs:
-
run
:
cat devenv/docker/blocks/mysql_tests/setup.sql | mysql -h 127.0.0.1 -P 3306 -u root -prootpass
-
run
:
name
:
mysql integration tests
command
:
'
GRAFANA_TEST_DB=mysql
go
test
./pkg/services/sqlstore/...
./pkg/tsdb/mysql/...
'
command
:
'
./scripts/circle-test-mysql.sh
'
postgres-integration-test
:
docker
:
...
...
@@ -54,7 +54,7 @@ jobs:
-
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
:
postgres integration tests
command
:
'
GRAFANA_TEST_DB=postgres
go
test
./pkg/services/sqlstore/...
./pkg/tsdb/postgres/...
'
command
:
'
./scripts/circle-test-postgres.sh
'
codespell
:
docker
:
...
...
scripts/circle-test-mysql.sh
0 → 100755
View file @
c68da407
#!/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
}
export
GRAFANA_TEST_DB
=
mysql
time
for
d
in
$(
go list ./pkg/...
)
;
do
exit_if_fail go
test
-tags
=
integration
$d
done
\ No newline at end of file
scripts/circle-test-postgres.sh
0 → 100755
View file @
c68da407
#!/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
}
export
GRAFANA_TEST_DB
=
postgres
time
for
d
in
$(
go list ./pkg/...
)
;
do
exit_if_fail go
test
-tags
=
integration
$d
done
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment