Skip to content

Commit

Permalink
Match v0.5 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmscott committed Jul 8, 2018
1 parent e28fc7e commit 8818a96
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 35 deletions.
30 changes: 17 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@ Match hides away the heavy lifting in Java, leaving the build files simple, intu
# Add the library
Library(
name = "junit"
version = "4.12"
extension = "jar"
location = "http://search.maven.org/remotecontent?filepath=junit/junit/"
file = "junit-4.12.jar"
location = "http://search.maven.org/remotecontent?filepath=junit/junit/4.12/"
)

# Build the code
JavaJar(
name = "Sample"
source = Find("source")
main_class = "match.Sample"
main-class = "match.Sample"
)

# Build the tests
JavaJar(
name = "SampleTest"
source = Find("tests/source")
main_class = "match.SampleTest"
main-class = "match.SampleTest"
library = [
"Sample"
"junit"
Expand All @@ -38,19 +37,20 @@ Match hides away the heavy lifting in Java, leaving the build files simple, intu
"SampleTest"
"Sample"
]
main_class = "match.SampleTest"
main-class = "match.SampleTest"
)

# Package the distribution
Zip(
name = "SampleDist"
source = [
Find("scripts")
GetFile("Sample")
]
# Release the package once tests pass
Release(
source = "Sample"
channel = "cp %s $HOME/match/libraries/Sample-0.5.jar"
await = "SampleTestResult"
)

## Functions
- AndroidApk - builds an Android APK using the Android SDK.
- AndroidInstrumentation - installs and runs instrumentation tests on a connected Android device.
- CheckStyle - enforces a style guide on the source code.
- Find - finds all files under the given directory, filtering files by an optional pattern.
- Get - looks up a build property given a key.
- GetFile - gets a reference to a file created by another function.
Expand All @@ -68,3 +68,7 @@ Match can easily be extended to include project-, language- or workspace-specifi
1. Create a new function in the "expression.function" package which extends "Function"
2. Compile and add to Match's classpath
3. Call by name in your match files

## Samples
- Echo - a simple Java application with tests. The match file compiles and jars the code and tests, and then runs the tests.
- HelloDroid - an Android Library and Application. The match file compiles the library and application, and then runs the tests.
32 changes: 13 additions & 19 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
Match Release
=============

# v0.1
- First Release!

# v0.2
- Simplifies function calling
- Increased documentation

# v0.3
- Parallel builds
- Supports extensions with project-, language-, and/or workspace-specific rules.
# v0.5
- Adds Android Library Support
- Adds CheckStyle Support
- Improves Library and Release handling
- Order RELEASE.md in reverse chronological order

# v0.4
- Adds Android support
Expand All @@ -20,14 +15,13 @@ Match Release
- Build timeouts
- Ditch "main" package for "match"

# 20180801
- Move to YYYYMMDD-based versioning for automation
- Leverage Config for arguments and configurations

# 20180901

# 20181001
# v0.3
- Parallel builds
- Supports extensions with project-, language-, and/or workspace-specific rules.

# 20181101
# v0.2
- Simplifies function calling
- Increased documentation

# 20181201
# v0.1
- First Release!
4 changes: 2 additions & 2 deletions lite-em
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

LIBRARIES="$HOME/match/libraries"
CONFIG_JAR="$LIBRARIES/Config-0.1.jar"
MATCH_JAR="$LIBRARIES/Match-0.4.jar"
MATCH_JAR="$LIBRARIES/Match-0.5.jar"

if [ ! -d "$LIBRARIES" ]; then
mkdir -p $LIBRARIES
Expand All @@ -26,7 +26,7 @@ if [ ! -f "$CONFIG_JAR" ]; then
fi

if [ ! -f "$MATCH_JAR" ]; then
curl -L https://github.com/stuartmscott/Match/releases/download/v0.4/Match-0.4.jar -o $MATCH_JAR
curl -L https://github.com/stuartmscott/Match/releases/download/v0.5/Match-0.5.jar -o $MATCH_JAR
fi

java -cp $CONFIG_JAR:$MATCH_JAR match.Match root=. libraries="$LIBRARIES"
2 changes: 1 addition & 1 deletion match
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ JavaJUnit(

Release(
source = "Match"
channel = "cp %s $HOME/match/libraries/Match-0.4.jar"
channel = "cp %s $HOME/match/libraries/Match-0.5.jar"
await = [
"MatchCheckStyleResult"
"MatchTestResult"
Expand Down

0 comments on commit 8818a96

Please sign in to comment.