-
-clean-deb:
- rm -f $(WORKSPACE)/*.deb
-
-clean-rpm:
- rm -f $(WORKSPACE)/*.rpm
-
-clean-node-modules:
- rm -rf $(WORKSPACE)/node_modules
-
-clean: clean-rpm clean-deb clean-node-modules
-
-yarn-install:
- yarn install
-
-test: yarn-install
- yarn test --no-watchAll --bail --ci
-
-build: yarn-install test
- yarn build
-
-# use FPM to create DEB and RPM with a version (usually triggered from CI to make a release)
-packages-with-version: build
- fpm \
- -s dir \
- -t deb \
- -n "$(APP_NAME)" \
- -v "$(VERSION)" \
- --iteration "$(ITERATION)" \
- --maintainer="$(MAINTAINER)" \
- --description="$(DESCRIPTION)" \
- --deb-no-default-config-files \
- $(WORKSPACE)/build/=DEST_DIR
- fpm \
- -s dir \
- -t rpm \
- -n "$(APP_NAME)" \
- -v "$(VERSION)" \
- --iteration "$(ITERATION)" \
- --maintainer="$(MAINTAINER)" \
- --description="$(DESCRIPTION)" \
- $(WORKSPACE)/build/=DEST_DIR
-
-# use FPM to create DEB and RPM
-packages: build
- fpm \
- -s dir \
- -t deb \
- -n "$(APP_NAME)" \
- -v "$(NIGHTLY_VERSION)" \
- --iteration "$(ITERATION)" \
- --maintainer="$(MAINTAINER)" \
- --description="$(DESCRIPTION)" \
- --deb-no-default-config-files \
- $(WORKSPACE)/build/=DEST_DIR
- fpm \
- -s dir \
- -t rpm \
- -n "$(APP_NAME)" \
- -v "$(NIGHTLY_VERSION)" \
- --iteration "$(ITERATION)" \
- --maintainer="$(MAINTAINER)" \
- --description="$(DESCRIPTION)" \
- $(WORKSPACE)/build/=DEST_DIR