Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 8 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

Creates a standalone pact command line executable containing

- The rust pact implementation via cargo executables
- The ruby pact implementation via Traveling Ruby

## Package contents
Expand All @@ -17,28 +16,23 @@ This version (2.5.5) of the Pact standalone executables package contains:
* pact-provider-verifier gem 1.39.1
* pact_broker-client gem 1.77.0
* pact-message gem 0.11.1
* [pact_mock_server_cli](https://github.com/pact-foundation/pact-core-mock-server/tree/main/pact_mock_server_cli)
* [pact-stub-server](https://github.com/pact-foundation/pact-stub-server)
* [pact_verifier_cli](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier_cli)
* [pact-plugin-cli](https://github.com/pact-foundation/pact-plugins/tree/main/cli)

Binaries will be extracted into `pact/bin`:

```
./pact/bin/
├── pact (central entry point to all binaries)
├── pact-broker
├── pactflow
├── pact_mock_server_cli
├── pact-stub-server
├── pact_verifier_cli
├── pact-plugin-cli
├── pact-message (legacy)
├── pact-mock-service (legacy)
├── pact-provider-verifier (legacy)
└── pact-stub-service (legacy)
├── pact-message
├── pact-mock-service
├── pact-provider-verifier
└── pact-stub-service
```

[!NOTE]

We have recently removed the bundled Rust tools from the Pact (Ruby) standalone. You can find the Rust tools at [pact-foundation/pact-cli](https://github.com/pact-foundation/pact-cli).

### Windows Users

Please append `.bat` to any of the provided ruby-based binaries
Expand All @@ -49,14 +43,6 @@ eg.
.\pact\bin\pact-broker.bat
```

Please append `.exe` to any of the provided rust based binaries

eg.

```ps1
.\pact\bin\pact_mock_server_cli.exe
```

## Installation

See the [release page][releases].
Expand Down
30 changes: 8 additions & 22 deletions packaging/README.md.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

Creates a standalone pact command line executable containing

- The rust pact implementation via cargo executables
- The ruby pact implementation via Traveling Ruby

## Package contents
Expand All @@ -17,28 +16,23 @@ This version (<%= ENV.fetch('VERSION') %>) of the Pact standalone executables pa
* pact-provider-verifier gem <%= Pact::ProviderVerifier::VERSION %>
* pact_broker-client gem <%= PactBroker::Client::VERSION %>
* pact-message gem <%= Pact::Message::VERSION %>
* [pact_mock_server_cli](https://github.com/pact-foundation/pact-core-mock-server/tree/main/pact_mock_server_cli)
* [pact-stub-server](https://github.com/pact-foundation/pact-stub-server)
* [pact_verifier_cli](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier_cli)
* [pact-plugin-cli](https://github.com/pact-foundation/pact-plugins/tree/main/cli)

Binaries will be extracted into `pact/bin`:

```
./pact/bin/
├── pact (central entry point to all binaries)
├── pact-broker
├── pactflow
├── pact_mock_server_cli
├── pact-stub-server
├── pact_verifier_cli
├── pact-plugin-cli
├── pact-message (legacy)
├── pact-mock-service (legacy)
├── pact-provider-verifier (legacy)
└── pact-stub-service (legacy)
├── pact-message
├── pact-mock-service
├── pact-provider-verifier
└── pact-stub-service
```

[!NOTE]

We have recently removed the bundled Rust tools from the Pact (Ruby) standalone. You can find the Rust tools at [pact-foundation/pact-cli](https://github.com/pact-foundation/pact-cli).

### Windows Users

Please append `.bat` to any of the provided ruby-based binaries
Expand All @@ -49,14 +43,6 @@ eg.
.\pact\bin\pact-broker.bat
```

Please append `.exe` to any of the provided rust based binaries

eg.

```ps1
.\pact\bin\pact_mock_server_cli.exe
```

## Installation

See the [release page][releases].
Expand Down
20 changes: 0 additions & 20 deletions packaging/pact.bat

This file was deleted.

92 changes: 0 additions & 92 deletions packaging/pact.rb

This file was deleted.

29 changes: 0 additions & 29 deletions packaging/pact.sh

This file was deleted.

8 changes: 1 addition & 7 deletions script/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,19 @@ if [ "$BINARY_OS" != "windows" ] ; then PATH_SEPERATOR=/ ; else PATH_SEPERATOR=\
PATH_TO_BIN=.${PATH_SEPERATOR}pkg${PATH_SEPERATOR}pact${PATH_SEPERATOR}bin${PATH_SEPERATOR}

tools=(
pact
pact-broker
pact-message
pact-mock-service
pact-provider-verifier
pact-stub-service
pactflow
pact-plugin-cli
pact-stub-server
pact_verifier_cli
pact_mock_server_cli
)

test_cmd=""
for tool in ${tools[@]}; do
echo testing $tool
if [ "$BINARY_OS" = "windows" ] ; then FILE_EXT=.bat; fi
if [ "$BINARY_OS" = "windows" ] && ([ "$tool" = "pact-plugin-cli" ] || [ "$tool" = "pact-stub-server" ] || [ "$tool" = "pact_verifier_cli" ] || [ "$tool" = "pact_mock_server_cli" ]) ; then FILE_EXT=.exe ; fi
if [ "$tool" = "pact_verifier_cli" ] || [ "$tool" = "pact-mock-service" ]; then test_cmd="--help" ; fi
if [ "$tool" = "pact-mock-service" ]; then test_cmd="--help" ; fi
echo executing ${tool}${FILE_EXT}
${PATH_TO_BIN}${tool}${FILE_EXT} ${test_cmd};
done
8 changes: 1 addition & 7 deletions script/unpack-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,19 @@ if [ "$BINARY_OS" != "windows" ] ; then PATH_SEPERATOR=/ ; else PATH_SEPERATOR=\
PATH_TO_BIN=.${PATH_SEPERATOR}pact${PATH_SEPERATOR}bin${PATH_SEPERATOR}

tools=(
pact
pact-broker
pact-message
pact-mock-service
pact-provider-verifier
pact-stub-service
pactflow
pact-plugin-cli
pact-stub-server
pact_verifier_cli
pact_mock_server_cli
)

test_cmd=""
for tool in ${tools[@]}; do
echo testing $tool
if [ "$BINARY_OS" = "windows" ] ; then FILE_EXT=.bat; fi
if [ "$BINARY_OS" = "windows" ] && ([ "$tool" = "pact-plugin-cli" ] || [ "$tool" = "pact-stub-server" ] || [ "$tool" = "pact_verifier_cli" ] || [ "$tool" = "pact_mock_server_cli" ]) ; then FILE_EXT=.exe ; fi
if [ "$tool" = "pact_verifier_cli" ] || [ "$tool" = "pact-mock-service" ]; then test_cmd="--help" ; fi
if [ "$tool" = "pact-mock-service" ]; then test_cmd="--help" ; fi
echo executing ${tool}${FILE_EXT}
${PATH_TO_BIN}${tool}${FILE_EXT} ${test_cmd};
done
Loading
Loading