Build also the server with travis

Add missing deps and steps for building the frontend together with the
final server binary.
pull/14/merge
Vasile Popescu 5 years ago
parent 16974db44b
commit 2558718aae

@ -1,4 +1,11 @@
language: go
go:
- 1.12.x
- 1.12.x
node_js:
- 12.4.0
# make frontend all won't work. The frontend assets have to be already built at the time of
# evaluating the Makefile first time, so for now I do it in two turns.
script: make frontend && make all

@ -1,4 +1,4 @@
DEPS=github.com/elisescu/pty github.com/sirupsen/logrus golang.org/x/crypto/ssh/terminal github.com/gorilla/mux github.com/gorilla/websocket
DEPS=github.com/elisescu/pty github.com/sirupsen/logrus golang.org/x/crypto/ssh/terminal github.com/gorilla/mux github.com/gorilla/websocket github.com/go-bindata/go-bindata/...
DEST_DIR=./out
TTY_SERVER=$(DEST_DIR)/tty-server
TTY_SHARE=$(DEST_DIR)/tty-share
@ -36,7 +36,7 @@ tty-server/assets_bundle.go: $(TTY_SERVER_ASSETS)
zip $@ $^
frontend: force
cd frontend && npm run build && cd -
cd frontend && npm install && npm run build && cd -
force:
# Other different targets

Loading…
Cancel
Save