Enable MySQL tests in CI config (#2082)

This commit is contained in:
Zachary Wasserman 2019-07-29 10:08:54 -07:00 committed by GitHub
parent 7b1ecc0c28
commit c321715e1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -3,6 +3,12 @@ jobs:
build-go:
docker:
- image: golang:1.12
- image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: toor
MYSQL_DATABASE: kolide
MYSQL_USER: kolide
MYSQL_PASSWORD: kolide
working_directory: /go/src/github.com/kolide/fleet
steps: &stepsgo
- checkout
@ -27,7 +33,7 @@ jobs:
- vendor
- run: make generate-go
- run: make lint-go
- run: make test-go
- run: MYSQL_TEST=1 MYSQL_PORT_3306_TCP_ADDR=127.0.0.1 make test-go
- run: make build
build-js:

View file

@ -130,7 +130,6 @@ test-go:
analyze-go:
go test -race -cover ./...
test-js: export NODE_PATH = ./frontend
test-js:
_mocha --compilers js:babel-core/register,tsx:typescript-require \
@ -152,7 +151,6 @@ generate-go: .prefix
frontend/templates/ assets/...
go-bindata -pkg=kolide -o=server/kolide/bindata.go server/mail/templates
# we first generate the webpack bundle so that bindata knows to watch the
# output bundle file. then, generate debug bindata source file. finally, we
# run webpack in watch mode to continuously re-generate the bundle