Disabled Twitter module by default
This commit is contained in:
parent
d9d5dd2e47
commit
1d85a1c516
6 changed files with 11 additions and 14 deletions
2
.idea/kotlinc.xml
generated
2
.idea/kotlinc.xml
generated
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="KotlinJpsPluginSettings">
|
<component name="KotlinJpsPluginSettings">
|
||||||
<option name="version" value="1.8.0" />
|
<option name="version" value="1.8.10" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -1,7 +1,7 @@
|
||||||
# mobibot
|
# mobibot
|
||||||
|
|
||||||
[](https://opensource.org/licenses/BSD-3-Clause)
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
||||||
[](https://kotlinlang.org/)
|
[](https://kotlinlang.org/)
|
||||||
[](https://sonarcloud.io/summary/new_code?id=ethauvin_mobibot)
|
[](https://sonarcloud.io/summary/new_code?id=ethauvin_mobibot)
|
||||||
[](https://github.com/ethauvin/mobibot/actions/workflows/gradle.yml)
|
[](https://github.com/ethauvin/mobibot/actions/workflows/gradle.yml)
|
||||||
[](https://circleci.com/gh/ethauvin/mobibot/tree/master)
|
[](https://circleci.com/gh/ethauvin/mobibot/tree/master)
|
||||||
|
@ -24,10 +24,7 @@ Some very basic instructions:
|
||||||
|
|
||||||
# help
|
# help
|
||||||
java -jar mobibot.jar -h
|
java -jar mobibot.jar -h
|
||||||
|
|
||||||
# twitter oauth token request
|
|
||||||
java -cp mobibot.jar net.thauvin.erik.mobibot.TwitterOAuth <consumerKey> <consumerSecret>
|
|
||||||
|
|
||||||
# launch
|
# launch
|
||||||
/usr/bin/nohup java -jar mobibot.jar &
|
/usr/bin/nohup java -jar mobibot.jar &
|
||||||
```
|
```
|
||||||
|
|
|
@ -5,8 +5,8 @@ plugins {
|
||||||
id 'io.gitlab.arturbosch.detekt' version '1.22.0'
|
id 'io.gitlab.arturbosch.detekt' version '1.22.0'
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
||||||
id 'org.jetbrains.kotlin.jvm' version '1.8.0'
|
id 'org.jetbrains.kotlin.jvm' version '1.8.10'
|
||||||
id 'org.jetbrains.kotlin.kapt' version '1.8.0'
|
id 'org.jetbrains.kotlin.kapt' version '1.8.10'
|
||||||
id 'org.jetbrains.kotlinx.kover' version '0.6.1'
|
id 'org.jetbrains.kotlinx.kover' version '0.6.1'
|
||||||
id 'org.sonarqube' version '3.5.0.2730'
|
id 'org.sonarqube' version '3.5.0.2730'
|
||||||
id 'pmd'
|
id 'pmd'
|
||||||
|
@ -92,10 +92,11 @@ dependencies {
|
||||||
|
|
||||||
test {
|
test {
|
||||||
useTestNG() {
|
useTestNG() {
|
||||||
|
excludeGroups.add('twitter')
|
||||||
if (isCI) {
|
if (isCI) {
|
||||||
excludeGroups('no-ci')
|
excludeGroups.add('no-ci')
|
||||||
println "Excluded test groups: ${excludeGroups}"
|
|
||||||
}
|
}
|
||||||
|
println "Excluded test groups: ${excludeGroups}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ tell-max-days=5
|
||||||
tell-max-size=50
|
tell-max-size=50
|
||||||
|
|
||||||
#disabled-commands=die, ignore
|
#disabled-commands=die, ignore
|
||||||
#disabled-modules=dice, joke
|
disabled-modules=twitter
|
||||||
|
|
||||||
#
|
#
|
||||||
# API Token for: https://pinboard.in/settings/password
|
# API Token for: https://pinboard.in/settings/password
|
||||||
|
|
|
@ -41,7 +41,7 @@ import org.testng.annotations.Test
|
||||||
* The `TwitterTest` class.
|
* The `TwitterTest` class.
|
||||||
*/
|
*/
|
||||||
class TwitterTest : LocalProperties() {
|
class TwitterTest : LocalProperties() {
|
||||||
@Test(groups = ["modules"])
|
@Test(groups = ["modules", "twitter"])
|
||||||
@Throws(ModuleException::class)
|
@Throws(ModuleException::class)
|
||||||
fun testTweet() {
|
fun testTweet() {
|
||||||
val msg = "Testing Twitter API from ${getHostName()}"
|
val msg = "Testing Twitter API from ${getHostName()}"
|
||||||
|
|
|
@ -122,8 +122,7 @@
|
||||||
<div><code>mobibot: paper</code></div>
|
<div><code>mobibot: paper</code></div>
|
||||||
<div><code>mobibot: rock</code></div>
|
<div><code>mobibot: rock</code></div>
|
||||||
</li>
|
</li>
|
||||||
<li>Posting to <a href="https://twitter.com/mobitopia">Twitter</a> and <a href="https://joinmastodon.org/">Mastodon</a>
|
<li>Automatic and manual posting to <a href="https://mastodon.social/@mobitopia/">Mastodon</a>
|
||||||
<div><code>mobibot: tweet hello twitter</code></div>
|
|
||||||
<div><code>mobibot: toot hello mastodon</code></div>
|
<div><code>mobibot: toot hello mastodon</code></div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue