mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Enable MySQL tests in CI config (#2082)
This commit is contained in:
parent
7b1ecc0c28
commit
c321715e1e
2 changed files with 7 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue