Skip to content

Commit

Permalink
Merge pull request #16 from usefulness/project_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski authored Aug 7, 2022
2 parents 9307124 + eb830d7 commit 830fcd8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ jobs:

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install 'Pillow==9.1.1'
python -m pip install --upgrade pip
python -m pip install 'Pillow==9.1.1'
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
Expand All @@ -155,8 +155,8 @@ jobs:
script: |
adb shell settings put global hidden_api_policy_p_apps 1
adb shell settings put global hidden_api_policy_pre_p_apps 1
adb shell settings put global hidden_api_policy 1
cd sample && ./gradlew verifyDebugAndroidTestScreenshotTest
adb shell settings put global hidden_api_policy 1
cd sample && ./gradlew verifyDebugAndroidTestScreenshotTest
- name: Upload screenshot tests result
uses: actions/upload-artifact@v3
Expand Down
9 changes: 9 additions & 0 deletions buildSrc/src/main/kotlin/PublishingPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ class PublishingPlugin : Plugin<Project> {
password = findConfig("GITHUB_TOKEN")
}
}
maven { maven ->
maven.name = "mavenCentral"
maven.setUrl("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
maven.mavenContent { it.releasesOnly() }
with(maven.credentials) {
username = findConfig("OSSRH_USERNAME")
password = findConfig("OSSRH_PASSWORD")
}
}
}
with(publications) {
register("mavenJava", MavenPublication::class.java) {
Expand Down
2 changes: 1 addition & 1 deletion plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tasks.register("pyTests", Exec) {

pluginBundle {
website = "https://github.com/usefulness/screenshot-tests-for-android/"
vcsUrl = "git@github.com:usefulness/screenshot-tests-for-android.git"
vcsUrl = "https://github.com/usefulness/screenshot-tests-for-android.git"
tags = ["android", "screenshots"]
}

Expand Down

0 comments on commit 830fcd8

Please sign in to comment.