Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
updates to the build script, pulsar added to docker compose. Closes G…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy D. Miller authored and Jeremy D. Miller committed Nov 10, 2021
1 parent 1792893 commit 58ef93a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ The main solution file is `Jasper.sln`, and you should be good to go to simply o
docker compose up -d
```

At the command line, the build script can be executed:

* on Windows with `build [task]`
* with Powershell with `./build.sh [task]`
* on *nix with `./build.sh [task]`

The default build task will run the basic unit tests along with the *Jasper.Http* tests. These other tasks may be helpful:

* `test-persistence* - runs the *Jasper.Persistence.Tests*
* `test-rabbitmq* - runs the Rabbit MQ transport tests
* `test-pulsar` - runs the Pulsar transport tests
* `test-tcp` - runs the TCP transport tests
* `storyteller`- runs the Storyteller specifications (think big, slow integration tests)
* `open_st` - opens the Storyteller UI to edit specifications or run interactively
* `full` - runs all possible tests. Get a cup of coffee or maybe just go out to lunch or the gym after you start this.


## What's with the name?

Expand Down
9 changes: 3 additions & 6 deletions build/build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ private static void Main(string[] args)
RunTests("Jasper.Http.Testing");
});

Target("full", DependsOn("test", "test-persistence", "storyteller", "test-tcp", "test-rabbitmq", "test-pulsar"));

Target("test-persistence", DependsOn("docker-up", "compile"), () =>
{
RunTests("Jasper.Persistence.Testing");
Expand All @@ -104,7 +106,7 @@ private static void Main(string[] args)
RunTests("Jasper.RabbitMQ.Tests");
});

Target("test-pulsar", DependsOn("pulsar", "compile"), () =>
Target("test-pulsar", DependsOn("docker-up", "compile"), () =>
{
RunTests("Jasper.Pulsar.Tests");
});
Expand Down Expand Up @@ -136,11 +138,6 @@ private static void Main(string[] args)

Target("ci", DependsOn("default"));

Target("pulsar", () =>
{
Run("docker", "run -itd --name jasper-pulsar -p 6650:6650 -p 8080:8080 apachepulsar/pulsar:2.8.1 bin/pulsar standalone");
});

Target("install", () =>
RunNpm("install"));

Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ services:
- "ACCEPT_EULA=Y"
- "SA_PASSWORD=P@55w0rd"
- "MSSQL_PID=Developer"
pulsar:
image: "apachepulsar/pulsar:2.8.1"
ports:
- "6650:6650"
- "8080:8080"
command: bin/pulsar standalone

0 comments on commit 58ef93a

Please sign in to comment.