File tree Expand file tree Collapse file tree 4 files changed +35
-5
lines changed Expand file tree Collapse file tree 4 files changed +35
-5
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ matrix:
11
11
- jdk : openjdk8
12
12
env : TERM=dumb MOCK_MAKER=mock-maker-inline KOTLIN_VERSION=1.2.50
13
13
- jdk : openjdk8
14
- env : TERM=dumb MOCK_MAKER=mock-maker-inline KOTLIN_VERSION=1.3.40
14
+ env : TERM=dumb MOCK_MAKER=mock-maker-inline KOTLIN_VERSION=1.3.50
15
15
- jdk : openjdk8
16
16
env : TERM=dumb KOTLIN_VERSION=1.0.7
17
17
- jdk : openjdk8
18
18
env : TERM=dumb KOTLIN_VERSION=1.1.61
19
19
- jdk : openjdk8
20
20
env : TERM=dumb KOTLIN_VERSION=1.2.50
21
21
- jdk : openjdk8
22
- env : TERM=dumb KOTLIN_VERSION=1.3.40
22
+ env : TERM=dumb KOTLIN_VERSION=1.3.50
23
23
24
24
25
25
env :
Original file line number Diff line number Diff line change @@ -34,3 +34,34 @@ fun doAction_doesSomething(){
34
34
```
35
35
36
36
For more info and samples, see the [ Wiki] ( https://github.com/nhaarman/mockito-kotlin/wiki ) .
37
+
38
+ ## Building
39
+
40
+ Mockito-Kotlin is built with Gradle.
41
+
42
+ - ` ./gradlew build ` builds the project
43
+ - ` ./gradlew publishToMavenLocal ` installs the maven artifacts in your local repository
44
+ - ` ./gradlew assemble && ./gradlew test ` runs the test suite (See Testing below)
45
+
46
+ ### Versioning
47
+
48
+ Mockito-Kotlin roughly follows SEMVER; version names are parsed from
49
+ git tags using ` git describe ` .
50
+
51
+ ### Testing
52
+
53
+ Mockito-Kotlin's test suite is located in a separate ` tests ` module,
54
+ to allow running the tests using several Kotlin versions whilst still
55
+ keeping the base module at a recent version.
56
+
57
+ Testing thus must be done in two stages: one to build the base artifact
58
+ to test against, and the actual execution of the tests against the
59
+ built artifact:
60
+
61
+ - ` ./gradlew assemble ` builds the base artifact
62
+ - ` ./gradlew test ` runs the tests against the built artifact.
63
+
64
+ Usually it is enough to test only using the default Kotlin versions;
65
+ CI will test against multiple versions.
66
+ If you want to test using a different Kotlin version locally, set
67
+ an environment variable ` KOTLIN_VERSION ` and run the tests.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apply from: '../publishing.gradle'
3
3
apply plugin : ' org.jetbrains.dokka'
4
4
5
5
buildscript {
6
- ext. kotlin_version = " 1.3.0 "
6
+ ext. kotlin_version = " 1.3.50 "
7
7
8
8
repositories {
9
9
mavenCentral()
Original file line number Diff line number Diff line change 1
1
buildscript {
2
- ext. kotlin_version = System . getenv(" KOTLIN_VERSION" ) ?: ' 1.0.7'
3
- ext. kotlin_version = ' 1.3.0'
2
+ ext. kotlin_version = System . getenv(" KOTLIN_VERSION" ) ?: ' 1.3.50'
4
3
5
4
repositories {
6
5
mavenCentral()
You can’t perform that action at this time.
0 commit comments