File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 6
6
set -e
7
7
8
8
PLUGIN_FILE=project/pact-plugin.sbt
9
- PACT_CONFIG_FILE=scalapact-scalatest /pact.sbt
9
+ PACT_CONFIG_FILE=tests-with-deps /pact.sbt
10
10
11
11
function remove_plugin_file {
12
12
if [ -f $PLUGIN_FILE ]; then rm $PLUGIN_FILE ; fi
Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ CORE_VERSION=$(grep "version :=" build.sbt | sed 's/version :=//g' | sed 's/ //g
10
10
remove_plugin_file
11
11
remove_config_file
12
12
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
17
13
echo " addSbtPlugin(\" com.itv\" % \" sbt-scalapact\" % \" $CORE_VERSION \" )" >> $PLUGIN_FILE
18
14
19
15
cat > $PACT_CONFIG_FILE << EOL
@@ -42,8 +38,8 @@ pactContractVersion := "2.0.0"
42
38
allowSnapshotPublish := false
43
39
EOL
44
40
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" &
47
43
48
44
COUNTDOWN=45
49
45
@@ -52,7 +48,7 @@ simple_countdown $COUNTDOWN
52
48
53
49
echo " Verifying..."
54
50
55
- sbt " ; project framework ; pact-verify --source target/pacts"
51
+ sbt " ; project testsWithDeps ; pact-verify --source target/pacts"
56
52
57
53
pkill -1 -f sbt-launch.jar
58
54
You can’t perform that action at this time.
0 commit comments