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