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