File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 2020 - prometheus/store_artifact :
2121 file : postgres_exporter
2222
23+ integration :
24+ docker :
25+ - image : circleci/golang:1.15
26+ - image : << parameters.postgres_image >>
27+ environment :
28+ POSTGRES_DB : circle_test
29+ POSTGRES_USER : postgres
30+ POSTGRES_PASSWORD : test
31+
32+ parameters :
33+ postgres_image :
34+ type : string
35+
36+ environment :
37+ DATA_SOURCE_NAME : ' postgresql://postgres:test@localhost:5432/circle_test?sslmode=disable'
38+ GOOPTS : ' -v -tags integration'
39+
40+ steps :
41+ - checkout
42+ - setup_remote_docker
43+ - run : docker version
44+ - run : make build
45+ - run : make test
46+
2347workflows :
2448 version : 2
2549 postgres_exporter :
@@ -28,6 +52,17 @@ workflows:
2852 filters :
2953 tags :
3054 only : /.*/
55+ - integration :
56+ matrix :
57+ parameters :
58+ postgres_image :
59+ - circleci/postgres:9.4
60+ - circleci/postgres:9.5
61+ - circleci/postgres:9.6
62+ - circleci/postgres:10
63+ - circleci/postgres:11
64+ - circleci/postgres:12
65+ - circleci/postgres:13
3166 - prometheus/build :
3267 name : build
3368 filters :
You can’t perform that action at this time.
0 commit comments