Update circle and makefile to build and test everything.
Signed-off-by: Will Piers <wpiers0405@gmail.com>pull/10616/head
parent
ea24800d3f
commit
3e56f45b90
25
Makefile
25
Makefile
|
@ -10,6 +10,8 @@ BINARY=mrfusion
|
|||
|
||||
default: prepare ${BINARY}
|
||||
|
||||
prepare: dev assets
|
||||
|
||||
${BINARY}: $(SOURCES)
|
||||
go build -o ${BINARY} ${LDFLAGS} ./cmd/mr-fusion-server/main.go
|
||||
|
||||
|
@ -19,24 +21,35 @@ docker-${BINARY}: $(SOURCES)
|
|||
docker: docker-${BINARY}
|
||||
docker build -t mrfusion .
|
||||
|
||||
assets:
|
||||
mkdir -p ui/build
|
||||
assets: jsbuild
|
||||
go-bindata -o ui/ui.go -ignore 'map|go' -pkg ui -nocompress=true ui/build/...
|
||||
|
||||
dev:
|
||||
jsbuild:
|
||||
cd ui && npm run build
|
||||
|
||||
dev: jsdev godev
|
||||
|
||||
godev:
|
||||
go get github.com/sparrc/gdm
|
||||
gdm restore
|
||||
go get -u github.com/jteeuwen/go-bindata/...
|
||||
|
||||
prepare: dev assets
|
||||
jsdev:
|
||||
cd ui && npm install
|
||||
|
||||
clean:
|
||||
if [ -f ${BINARY} ] ; then rm ${BINARY} ; fi
|
||||
cd ui && npm run clean
|
||||
|
||||
test:
|
||||
test: gotest jstest
|
||||
|
||||
gotest:
|
||||
go test -race ./...
|
||||
|
||||
jstest:
|
||||
cd ui && npm test
|
||||
|
||||
run:
|
||||
./mrfusion --port 8888
|
||||
|
||||
.PHONY: clean test run
|
||||
.PHONY: clean test jstest run
|
||||
|
|
|
@ -9,6 +9,7 @@ machine:
|
|||
|
||||
dependencies:
|
||||
pre:
|
||||
- npm install -g node-sass
|
||||
- git config --global url."git@github.com:".insteadOf "https://github.com/"
|
||||
- mkdir -p ${HOME}/.go_workspace/src/github.com/influxdata
|
||||
- ln -sf ${HOME}/mrfusion ${HOME}/.go_workspace/src/github.com/influxdata
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
"test:dev": "testem",
|
||||
"test": "mocha --compilers js:babel-core/register --recursive spec/",
|
||||
"test:watch": "npm run test:mocha -- --watch",
|
||||
"test:browser": "webpack-dev-server --config webpack/testConfig.js"
|
||||
"test:browser": "webpack-dev-server --config webpack/testConfig.js",
|
||||
"clean": "rm -rf ui/build"
|
||||
},
|
||||
"author": "",
|
||||
"eslintConfig": {
|
||||
|
|
Loading…
Reference in New Issue