-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make publication validator part of the project
Before, publication validator was just lying nearby, in these files, and built and run separately. Now, it is compiled alongside the main project (in the `test` gradle configuration), so its breakage will be detected during normal usage. Still, it is only run when a special gradle property, `DeployVersion`, is defined.
- Loading branch information
1 parent
6d1a6e3
commit 53061c5
Showing
11 changed files
with
29 additions
and
301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
# Publication validator | ||
|
||
This is a supplementary subproject of kotlinx.coroutines to test its publication correctness. | ||
This is a supplementary subproject of kotlinx.coroutines that provides a new | ||
task, `testPublishing`, to test its publication correctness. | ||
|
||
It is used as part of "Dependency validation" build chain on TeamCity: | ||
* kotlinx.corotoutines are built with `publishToMavenLocal` | ||
* kotlinx.coroutines are built with `npmPublish -PdryRun=true` to have a packed publication | ||
The tests are the following: | ||
* `NpmPublicationValidator` tests that version of NPM artifact is correct and that it has neither source nor package dependencies on atomicfu | ||
* `MavenPublicationValidator` depends on the published artifacts and tests artifacts binary content and absence of atomicfu in the classpath | ||
|
||
To test publication, one can run gradle with `-PdryRun=true testPublishing`. | ||
Here, `-PdryRun` affects `npmPublish` so that it only provides a packed | ||
publication and does not in fact attempt to send the build for publication. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
6 changes: 0 additions & 6 deletions
6
publication-validator/gradle/wrapper/gradle-wrapper.properties
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters