Skip to content

Commit

Permalink
build: Added 'make build' for building releases
Browse files Browse the repository at this point in the history
  • Loading branch information
cederberg committed Aug 25, 2022
1 parent fbc6628 commit 4230f63
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
19 changes: 16 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
#
all:
@echo '🌈 Makefile targets'
@echo 'make clean — Cleanup intermediary files'
@echo 'make setup — Setup development environment'
@echo 'make test — Tests & code style checks'
@echo ' · make clean — Cleanup intermediary files'
@echo ' · make setup — Setup development environment'
@echo ' · make build — Build release artefacts'
@echo ' · make test — Tests & code style checks'
@echo
@echo '🚀 Release builds'
@echo ' · VERSION=2022.08 make build'
@echo
@echo '📍 Apache Ant (and Java) must be installed separately.'


#
Expand All @@ -22,6 +28,13 @@ setup: clean
npm install --no-optional


#
# Build release artefacts
#
build:
ant package


#
# Tests & code style checks
#
Expand Down
10 changes: 8 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@
<project default="package">

<!-- INITIALIZATION -->
<property environment="env"/>
<property file="build.properties" />
<tstamp>
<format property="build.date" pattern="yyyy-MM-dd" />
<format property="build.today" pattern="yyyy-MM-dd" />
</tstamp>
<property name="build.version" value="${DSTAMP}" />
<condition property="build.date" value="${env.DATE}" else="${build.today}">
<isset property="env.DATE" />
</condition>
<condition property="build.version" value="${env.VERSION}" else="${DSTAMP}">
<isset property="env.VERSION" />
</condition>
<property name="build.platform" value="${build.version}" />
<path id="build.classpath">
<fileset dir="lib" includes="**/*.jar" />
Expand Down

0 comments on commit 4230f63

Please sign in to comment.