diff --git a/.travis.yml b/.travis.yml index b1e5c8574..98d4cf2a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ before_install: install: - make -C src/api bootstrap - make -C src/ui install + - make -C src/ui VERSION=$TRAVIS_TAG set-version script: - make -C src/api test test-cover docker-build - make -C src/ui docker-build # Tests disabled for now diff --git a/src/ui/Makefile b/src/ui/Makefile index 4f89075f0..ff9feb99b 100644 --- a/src/ui/Makefile +++ b/src/ui/Makefile @@ -1,6 +1,10 @@ IMAGE_REPO ?= bitnami/monocular-ui IMAGE_TAG ?= latest +ifeq "$(VERSION)" "" + override VERSION = dev +endif + install: npm install @@ -18,3 +22,6 @@ compile-aot: docker-build: compile-aot docker build --pull --rm -t ${IMAGE_REPO}:${IMAGE_TAG} rootfs/ + +set-version: + sed -i src/version.ts -e 's/dev/${VERSION}/' diff --git a/src/ui/src/app/footer/footer.component.html b/src/ui/src/app/footer/footer.component.html index d29eb8e82..6988ac550 100644 --- a/src/ui/src/app/footer/footer.component.html +++ b/src/ui/src/app/footer/footer.component.html @@ -12,6 +12,7 @@