File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change 11language : go
22go :
3- - " 1.13 .x"
3+ - " 1.14 .x"
44
55services :
66 - postgresql
7+ - docker
78
89env :
910 - GO111MODULE=on
1011
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
1215
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