Skip to content

Commit 093e971

Browse files
author
Dave Smith
committed
Tweaking verify scripts.
1 parent 2b67fe1 commit 093e971

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

scripts/test-header.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
set -e
77

88
PLUGIN_FILE=project/pact-plugin.sbt
9-
PACT_CONFIG_FILE=scalapact-scalatest/pact.sbt
9+
PACT_CONFIG_FILE=tests-with-deps/pact.sbt
1010

1111
function remove_plugin_file {
1212
if [ -f $PLUGIN_FILE ]; then rm $PLUGIN_FILE; fi

scripts/test-verifier.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ CORE_VERSION=$(grep "version :=" build.sbt | sed 's/version :=//g' | sed 's/ //g
1010
remove_plugin_file
1111
remove_config_file
1212

13-
echo "libraryDependencies += \"com.itv\" %% \"scalapact-circe-0-9\" % \"$CORE_VERSION\"" > $PLUGIN_FILE
14-
echo "" >> $PLUGIN_FILE
15-
echo "libraryDependencies += \"com.itv\" %% \"scalapact-http4s-0-18\" % \"$CORE_VERSION\"" >> $PLUGIN_FILE
16-
echo "" >> $PLUGIN_FILE
1713
echo "addSbtPlugin(\"com.itv\" % \"sbt-scalapact\" % \"$CORE_VERSION\")" >> $PLUGIN_FILE
1814

1915
cat > $PACT_CONFIG_FILE <<EOL
@@ -42,8 +38,8 @@ pactContractVersion := "2.0.0"
4238
allowSnapshotPublish := false
4339
EOL
4440

45-
sbt "project framework" update
46-
sbt "; project framework; pact-stubber --port 1234" &
41+
sbt "project testsWithDeps" update
42+
sbt "; project testsWithDeps; pact-stubber --port 1234" &
4743

4844
COUNTDOWN=45
4945

@@ -52,7 +48,7 @@ simple_countdown $COUNTDOWN
5248

5349
echo "Verifying..."
5450

55-
sbt "; project framework; pact-verify --source target/pacts"
51+
sbt "; project testsWithDeps; pact-verify --source target/pacts"
5652

5753
pkill -1 -f sbt-launch.jar
5854

0 commit comments

Comments
 (0)