-
Notifications
You must be signed in to change notification settings - Fork 6
/
ship-it.sh
executable file
·25 lines (19 loc) · 1.08 KB
/
ship-it.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
set -e
echo "💫 Housekeeping first!"
dotnet clean > /dev/null && dotnet restore
echo "➡️ Consumer 1 is creating a contract with AddressBook API"
dotnet test AddressBook.API.Consumer1.Pact
echo "✅ Consumer 1 wrote its contract with AddressBook API at pacts/consumer1-addressbook.api.json"
echo "➡️ Consumer 2 is creating a contract with AddressBook API"
dotnet test AddressBook.API.Consumer2.Pact
echo "✅ Consumer 2 wrote its contract with AddressBook API at pacts/consumer2-addressbook.api.json"
echo "➡️ AddressBook API is verifying that all consumer contracts are honored..."
dotnet test AddressBook.API.Tests
echo "
---------------------------------------------------------------------------------------------
✅ Consumer 1 wrote its contract with AddressBook API at pacts/consumer1-addressbook.api.json
✅ Consumer 2 wrote its contract with AddressBook API at pacts/consumer2-addressbook.api.json
✅ AddressBook API has verified all contracts successfully!
---------------------------------------------------------------------------------------------
"