alertmanager/.travis.yml
Max Leonard Inden b3f3ecf803
Improve front-end build process
We generate binaries whenever `make build-all` is run. If they already
exist, we only regenerate them if they are outdated.

When one makes changes to the front-end and runs the single command
`make build-all` on the root level Makefile, the front-end is rebuild
accordingly.

`make build-all` will use Docker to build the front-end. If someone prefers
to install all the dev dependencies on their local machine instead, one
can add the `NO_DOCKER=true` flag.

For folks that only want to make back-end changes `ui/bindata.go` is
checked in, so they do not have to build the front-end. They still use
the `make build` command as before.
2017-07-06 13:43:10 +02:00

18 lines
190 B
YAML

sudo: false
language: go
services:
- docker
go:
- 1.8.1
script:
# test front-end
- make clean
- cd ui/app/ && make && cd ../..
- make assets
- git diff --exit-code
# test back-end
- make