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
e33b17fa
Commit
e33b17fa
authored
May 30, 2018
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: integration testing postegres on ci.
parent
50d1519a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
2 deletions
+27
-2
.circleci/config.yml
+25
-0
docker/blocks/postgres/docker-compose.yaml
+1
-1
docker/blocks/postgres_tests/Dockerfile
+1
-1
docker/blocks/postgres_tests/setup.sql
+0
-0
No files found.
.circleci/config.yml
View file @
e33b17fa
...
@@ -32,6 +32,25 @@ jobs:
...
@@ -32,6 +32,25 @@ jobs:
name
:
mysql integration tests
name
:
mysql integration tests
command
:
'
GRAFANA_TEST_DB=mysql
go
test
./pkg/...'
command
:
'
GRAFANA_TEST_DB=mysql
go
test
./pkg/...'
postgres-integration-test
:
docker
:
-
image
:
circleci/golang:1.10
-
image
:
circleci/postgres:9.3-ram
environment
:
POSTGRES_USER
:
grafanatest
POSTGRES_PASSWORD
:
grafanatest
POSTGRES_DB
:
grafanatest
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:5432 -timeout 120s
-
run
:
'
PGPASSWORD=grafanatest
psql
-p
5432
-h
127.0.0.1
-U
grafanatest
-d
grafanatest
-f
docker/blocks/postgres_tests/setup.sql'
-
run
:
name
:
postgres integration tests
command
:
'
GRAFANA_TEST_DB=postgres
go
test
./pkg/...'
codespell
:
codespell
:
docker
:
docker
:
-
image
:
circleci/python
-
image
:
circleci/python
...
@@ -210,6 +229,8 @@ workflows:
...
@@ -210,6 +229,8 @@ workflows:
filters
:
*filter-not-release
filters
:
*filter-not-release
-
mysql-integration-test
:
-
mysql-integration-test
:
filters
:
*filter-not-release
filters
:
*filter-not-release
-
postgres-integration-test
:
filters
:
*filter-not-release
-
deploy-master
:
-
deploy-master
:
requires
:
requires
:
-
build-all
-
build-all
...
@@ -218,6 +239,7 @@ workflows:
...
@@ -218,6 +239,7 @@ workflows:
-
codespell
-
codespell
-
gometalinter
-
gometalinter
-
mysql-integration-test
-
mysql-integration-test
-
postgres-integration-test
filters
:
filters
:
branches
:
branches
:
only
:
master
only
:
master
...
@@ -235,6 +257,8 @@ workflows:
...
@@ -235,6 +257,8 @@ workflows:
filters
:
*filter-only-release
filters
:
*filter-only-release
-
mysql-integration-test
:
-
mysql-integration-test
:
filters
:
*filter-only-release
filters
:
*filter-only-release
-
postgres-integration-test
:
filters
:
*filter-only-release
-
deploy-release
:
-
deploy-release
:
requires
:
requires
:
-
build-all
-
build-all
...
@@ -243,4 +267,5 @@ workflows:
...
@@ -243,4 +267,5 @@ workflows:
-
codespell
-
codespell
-
gometalinter
-
gometalinter
-
mysql-integration-test
-
mysql-integration-test
-
postgres-integration-test
filters
:
*filter-only-release
filters
:
*filter-only-release
docker/blocks/postgres/docker-compose.yaml
View file @
e33b17fa
postgrestest
:
postgrestest
:
image
:
postgres:
latest
image
:
postgres:
9.3
environment
:
environment
:
POSTGRES_USER
:
grafana
POSTGRES_USER
:
grafana
POSTGRES_PASSWORD
:
password
POSTGRES_PASSWORD
:
password
...
...
docker/blocks/postgres_tests/Dockerfile
View file @
e33b17fa
FROM
postgres:
latest
FROM
postgres:
9.3
ADD
setup.sql /docker-entrypoint-initdb.d
ADD
setup.sql /docker-entrypoint-initdb.d
CMD
["postgres"]
CMD
["postgres"]
docker/blocks/postgres_tests/setup.sql
View file @
e33b17fa
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