bashhub-server/.travis.yml

18 lines
405 B
YAML
Raw Normal View History

2020-02-10 17:08:30 +08:00
language: go
go:
2020-05-31 15:41:06 +08:00
- "1.14.x"
2020-02-10 17:08:30 +08:00
services:
- postgresql
2020-05-31 15:41:06 +08:00
- docker
2020-02-10 17:08:30 +08:00
env:
- GO111MODULE=on
2020-05-31 15:41:06 +08:00
before_install:
- docker build -t nicksherron/bashhub-server .
- docker run -d -p 127.0.0.1:8080:8080 nicksherron/bashhub-server
- curl 127.0.0.1:8080/ping
2020-02-10 17:08:30 +08:00
2020-05-31 15:41:06 +08:00
script: go test ./... && go test github.com/nicksherron/bashhub-server/internal -postgres-uri "postgres://postgres:@localhost:5432?sslmode=disable"