File tree 1 file changed +6
-13
lines changed
1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change 1
1
language : go
2
2
go :
3
- - " 1.13 .x"
3
+ - " 1.14 .x"
4
4
5
5
services :
6
6
- postgresql
7
+ - docker
7
8
8
9
env :
9
10
- GO111MODULE=on
10
11
11
- install : true
12
+ before_install :
13
+ - docker build -t nicksherron/bashhub-server .
14
+ - docker run -d -p 8080:8080 nicksherron/bashhub-server && curl localhost:8080/ping
12
15
13
-
14
- jobs :
15
- include :
16
- - stage : build docker image
17
- script : docker build -t bashhub-server .
18
- - stage : run server
19
- script : docker run --rm -d bashhub-server
20
- - stage : ping docker server
21
- script : curl http://localhost:8080/ping
22
- - stage : test
23
- script : go test ./... && go test github.com/nicksherron/bashhub-server/internal -postgres-uri "postgres://postgres:@localhost:5432?sslmode=disable"
16
+ script : go test ./... && go test github.com/nicksherron/bashhub-server/internal -postgres-uri "postgres://postgres:@localhost:5432?sslmode=disable"
You can’t perform that action at this time.
0 commit comments