This repository has been archived by the owner on Jun 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
1,241 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: gradle | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
labels: | ||
- dependencies | ||
commit-message: | ||
prefix: chore | ||
include: scope | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
labels: | ||
- dependencies | ||
commit-message: | ||
prefix: ci | ||
include: scope |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
titleOnly: true | ||
types: | ||
- feat | ||
- fix | ||
- docs | ||
- refactor | ||
- test | ||
- build | ||
- ci | ||
- chore | ||
- revert |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: CI PR/Branch | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Set up java for tests execution | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Gradle - build & test | ||
run: gradle build |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI/CD on master | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
BINTRAY_REPO: maven | ||
BINTRAY_ORG: homecentr | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Set up java for tests execution | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: "Determine release version" | ||
uses: codfish/semantic-release-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_URL: "https://api.github.com" | ||
|
||
- name: Gradle - build & test | ||
run: gradle build | ||
|
||
- name: Gradle - publish to bintray | ||
if: env.RELEASE_VERSION != '' | ||
run: gradle bintrayUpload | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }} |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Java class files | ||
*.class | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
|
||
# virtual machine crash logs, see http:https://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
# generated files | ||
bin/ | ||
gen/ | ||
build/ | ||
out/ | ||
|
||
# Eclipse project files | ||
.classpath | ||
.project | ||
.settings/ | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Intellij project files | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
#Gradle | ||
.gradletasknamecache | ||
.gradle/ | ||
gradle.properties | ||
|
||
# Exceptions | ||
!gradle/wrapper/*.jar | ||
|
||
# Logs / Save Files | ||
config/* | ||
client.log | ||
|
||
# JavaDoc | ||
/docs/javadoc/* | ||
|
||
# Example Code | ||
/src/main/java/me/philippheuer/twitch4j/example/* | ||
|
||
# Modules | ||
/modules/ |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
branch: 'master', | ||
plugins: [ | ||
'@semantic-release/commit-analyzer', | ||
'@semantic-release/release-notes-generator', | ||
'@semantic-release/github', | ||
], | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 HomeCentr | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 +1,3 @@ | ||
Initial commit | ||
# ansible-testing | ||
|
||
Java library which extends the [testcontainers-extensions](https://github.com/homecentr/testcontainers-extensions) to allow simple sandboxed testing of Ansible roles. |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Security policy | ||
|
||
## Disclosure policy | ||
|
||
In case you find a security issues with this docker image, please reach out to me at [email protected] and provide 5 business days to release a fixed version. | ||
|
||
## Security update policy | ||
|
||
Known security issues will be published in GitHub repository's Security / Security advisories. | ||
|
||
## Automated processes | ||
|
||
The dependencies are automatically scanned using [Dependabot](https://dependabot.com/). Dependencies are regularly updated. You can check for pending dependency updates by listing open Pull requests with the "dependencies" label. |
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 |
---|---|---|
@@ -0,0 +1,95 @@ | ||
plugins{ | ||
id 'com.jfrog.bintray' version '1.8.5' | ||
id 'java-library' | ||
id 'idea' | ||
id 'maven-publish' | ||
id 'maven' | ||
} | ||
|
||
group = 'io.homecentr' | ||
|
||
sourceCompatibility = 1.8 | ||
|
||
jar { | ||
baseName = 'ansible-tests' | ||
} | ||
|
||
repositories{ | ||
mavenCentral() | ||
jcenter() | ||
maven { | ||
url "https://dl.bintray.com/homecentr/maven" | ||
} | ||
} | ||
|
||
dependencies{ | ||
implementation "org.testcontainers:testcontainers:1.14.3" | ||
implementation 'io.homecentr:testcontainers-extensions:1.4.0' | ||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.2' | ||
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.2' | ||
|
||
testImplementation group: 'junit', name: 'junit', version: '4.13' | ||
|
||
testCompile "org.mockito:mockito-core:3.3.3" | ||
} | ||
|
||
task sourcesJar(type: Jar, dependsOn: classes){ | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc){ | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
artifacts{ | ||
archives sourcesJar | ||
archives javadocJar | ||
} | ||
|
||
bintray{ | ||
user = System.getenv("BINTRAY_USER") | ||
key = System.getenv("BINTRAY_API_KEY") | ||
publications = ['AnsibleTests'] | ||
publish = true | ||
|
||
pkg{ | ||
repo = String.valueOf(System.getenv('BINTRAY_REPO')).toLowerCase() | ||
userOrg = String.valueOf(System.getenv('BINTRAY_ORG')).toLowerCase() | ||
name = 'ansible-tests' | ||
licenses = ['MIT'] | ||
vcsUrl = 'https://github.com/homecentr/lib-ansible-tests.git' | ||
websiteUrl = 'https://github.com/homecentr/lib-ansible-tests' | ||
issueTrackerUrl = 'https://github.com/homecentr/lib-ansible-tests/issues' | ||
publicDownloadNumbers = true | ||
|
||
githubRepo = 'homecentr/lib-ansible-tests' | ||
githubReleaseNotesFile = 'README.md' | ||
|
||
version { | ||
name = String.valueOf(System.getenv("RELEASE_VERSION")).replace("v", "") | ||
vcsTag = String.valueOf(System.getenv("GITHUB_SHA")).toLowerCase() | ||
released = new Date() | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
AnsibleTests(MavenPublication){ | ||
from components.java | ||
groupId group | ||
artifactId 'ansible-tests' | ||
version String.valueOf(System.getenv("RELEASE_VERSION")).replace("v", "") | ||
artifact javadocJar | ||
artifact sourcesJar | ||
} | ||
} | ||
} | ||
|
||
test { | ||
afterTest { desc, result -> | ||
logger.quiet "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}" | ||
} | ||
} |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\:https://services.gradle.org/distributions/gradle-4.8.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.