File tree Expand file tree Collapse file tree 10 files changed +63
-64
lines changed
provider_tests/delivered_pacts Expand file tree Collapse file tree 10 files changed +63
-64
lines changed Original file line number Diff line number Diff line change 1
1
language : scala
2
2
3
3
scala :
4
- - 2.12.10
4
+ # We just keep the latest version here. All scripts do their own cross-building (because they are supposed to do
5
+ # that locally.)
5
6
- 2.13.1
6
7
7
8
script :
8
- - alias sbt='sbt ++$TRAVIS_SCALA_VERSION -jvm-opts .jvmopts'
9
9
- bash ./scripts/local-build-test.sh
10
10
11
11
after_success :
Original file line number Diff line number Diff line change @@ -69,11 +69,11 @@ def compilerOptionsVersion(scalaVersion: String) =
69
69
case _ => Nil
70
70
})
71
71
72
- lazy val scalaVersion212 : String = " 2.12.10"
73
- lazy val scalaVersion213 : String = " 2.13.1"
72
+ lazy val scalaVersion212 : String = " 2.12.10"
73
+ lazy val scalaVersion213 : String = " 2.13.1"
74
74
lazy val supportedScalaVersions = List (scalaVersion212, scalaVersion213)
75
75
76
- ThisBuild / scalaVersion := scalaVersion213
76
+ ThisBuild / scalaVersion := scalaVersion212
77
77
78
78
lazy val commonSettings = Seq (
79
79
version := " 2.3.12" ,
@@ -458,13 +458,13 @@ lazy val docs =
458
458
.enablePlugins(ParadoxSitePlugin )
459
459
.enablePlugins(GhpagesPlugin )
460
460
.settings(
461
- scalaVersion := scalaVersion212, // WIP!
462
461
paradoxTheme := Some (builtinParadoxTheme(" generic" )),
463
462
name := " scalapact-docs" ,
464
463
git.remoteRepo
:= " [email protected] :ITV/scala-pact.git" ,
465
464
sourceDirectory in Paradox := sourceDirectory.value / " main" / " paradox" ,
466
465
skip in publish := true
467
466
)
467
+ .settings(scala212OnlySettings)
468
468
469
469
lazy val scalaPactProject =
470
470
(project in file(" ." ))
Original file line number Diff line number Diff line change 3
3
"name" : " Provider"
4
4
},
5
5
"interactions" : [
6
- {
7
- "request" : {
8
- "method" : " GET" ,
9
- "path" : " /results"
10
- },
11
- "description" : " Fetching results" ,
12
- "response" : {
13
- "status" : 200 ,
14
- "headers" : {
15
- "Pact" : " modifiedRequest"
16
- },
17
- "body" : {
18
- "count" : 3 ,
19
- "results" : [
20
- " Bob" ,
21
- " Fred" ,
22
- " Harry"
23
- ]
24
- }
25
- },
26
- "providerState" : " Results: Bob, Fred, Harry"
27
- },
28
6
{
29
7
"request" : {
30
8
"method" : " GET" ,
56
34
}
57
35
}
58
36
}
37
+ },
38
+ {
39
+ "request" : {
40
+ "method" : " GET" ,
41
+ "path" : " /results"
42
+ },
43
+ "description" : " Fetching results" ,
44
+ "response" : {
45
+ "status" : 200 ,
46
+ "headers" : {
47
+ "Pact" : " modifiedRequest"
48
+ },
49
+ "body" : {
50
+ "count" : 3 ,
51
+ "results" : [
52
+ " Bob" ,
53
+ " Fred" ,
54
+ " Harry"
55
+ ]
56
+ }
57
+ },
58
+ "providerState" : " Results: Bob, Fred, Harry"
59
59
}
60
60
],
61
61
"consumer" : {
Original file line number Diff line number Diff line change 3
3
"name" : " Provider"
4
4
},
5
5
"interactions" : [
6
- {
7
- "request" : {
8
- "method" : " GET" ,
9
- "path" : " /results"
10
- },
11
- "description" : " Fetching results" ,
12
- "response" : {
13
- "status" : 200 ,
14
- "headers" : {
15
- "Pact" : " modifiedRequest"
16
- },
17
- "body" : {
18
- "count" : 3 ,
19
- "results" : [
20
- " Bob" ,
21
- " Fred" ,
22
- " Harry"
23
- ]
24
- }
25
- },
26
- "providerState" : " Results: Bob, Fred, Harry"
27
- },
28
6
{
29
7
"request" : {
30
8
"method" : " GET" ,
56
34
}
57
35
}
58
36
}
37
+ },
38
+ {
39
+ "request" : {
40
+ "method" : " GET" ,
41
+ "path" : " /results"
42
+ },
43
+ "description" : " Fetching results" ,
44
+ "response" : {
45
+ "status" : 200 ,
46
+ "headers" : {
47
+ "Pact" : " modifiedRequest"
48
+ },
49
+ "body" : {
50
+ "count" : 3 ,
51
+ "results" : [
52
+ " Bob" ,
53
+ " Fred" ,
54
+ " Harry"
55
+ ]
56
+ }
57
+ },
58
+ "providerState" : " Results: Bob, Fred, Harry"
59
59
}
60
60
],
61
61
"consumer" : {
Original file line number Diff line number Diff line change 9
9
echo " Locally published Scala-Pact"
10
10
echo " ****************************"
11
11
12
- sbt localPublishScalaPact
13
-
12
+ sbt +localPublishScalaPact
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- sbt docs/clean docs/paradox docs/makeSite docs/ghpagesPushSite
3
+ sbt + docs/clean + docs/paradox + docs/makeSite + docs/ghpagesPushSite
Original file line number Diff line number Diff line change 27
27
echo " "
28
28
echo " Preparing Scala-Pact for publishing"
29
29
30
- sbt prepareScalaPactPublish
30
+ sbt + prepareScalaPactPublish
31
31
32
32
echo " "
33
33
echo -e " Preparation complete, release to Sonatype? [y/n] \c"
40
40
echo " Publishing now.."
41
41
fi
42
42
43
- sbt sonatypeBundleRelease
43
+ sbt + sonatypeBundleRelease
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ echo "**********************"
7
7
8
8
# At this point, all the local publishing (therefore: clean update compile test publishLocal) should be done.
9
9
10
- sbt test:compile
11
- sbt pactSpec/test
12
- sbt testsWithDeps/test
10
+ sbt + test:compile
11
+ sbt + pactSpec/test
12
+ sbt + testsWithDeps/test
Original file line number Diff line number Diff line change @@ -8,26 +8,26 @@ echo "***********************"
8
8
echo " "
9
9
echo " > Consumer tests"
10
10
cd example/consumer
11
- sbt clean update compile pactTest
11
+ sbt + clean + update + compile + pactTest
12
12
cd ..
13
13
bash deliver.sh
14
14
15
15
echo " "
16
16
echo " > Provider verification by test suite"
17
17
cd provider_tests
18
- sbt clean update compile test
18
+ sbt + clean + update + compile + test
19
19
cd ..
20
20
21
21
echo " "
22
22
echo " > Provider verification by external testing"
23
23
cd provider
24
- sbt run &
24
+ sbt + run &
25
25
26
26
echo " ..wait a bit for the service to start"
27
27
simple_countdown 30
28
28
29
- sbt " pactVerify --source delivered_pacts/ --host localhost --port 8080 --clientTimeout 2"
29
+ sbt " + pactVerify --source delivered_pacts/ --host localhost --port 8080 --clientTimeout 2"
30
30
31
31
cd ../..
32
32
33
- pkill -1 -f sbt-launch.jar
33
+ pkill -1 -f sbt-launch.jar
Original file line number Diff line number Diff line change @@ -52,4 +52,4 @@ sbt "testsWithDeps/pactVerify --source target/pacts --clientTimeout 10"
52
52
pkill -1 -f sbt-launch.jar
53
53
54
54
remove_plugin_file
55
- remove_config_file
55
+ remove_config_file
You can’t perform that action at this time.
0 commit comments