Skip to content

Commit ffc3694

Browse files
committed
add travis.yml
Signed-off-by: Adam Ratzman <[email protected]>
1 parent ffb0966 commit ffc3694

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: java
2+
os:
3+
- osx
4+
- windows
5+
before_cache:
6+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
7+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
8+
cache:
9+
directories:
10+
- $HOME/.gradle/caches/
11+
- $HOME/.gradle/wrapper/

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ buildscript {
2828
mavenCentral()
2929
}
3030
dependencies {
31-
classpath("com.android.tools.build:gradle:4.2.2")
31+
classpath("com.android.tools.build:gradle:4.1.0")
3232
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21")
3333
}
3434
}
@@ -121,7 +121,7 @@ kotlin {
121121
}
122122

123123
val irOnlyJs = project.hasProperty("irOnly")
124-
js(if (irOnlyJs) KotlinJsCompilerType.IR else KotlinJsCompilerType.LEGACY) {
124+
js(if (irOnlyJs) KotlinJsCompilerType.IR else KotlinJsCompilerType.BOTH) {
125125

126126
mavenPublication {
127127
setupPom(artifactId)

src/commonMain/kotlin/com.adamratzman.spotify/http/Endpoints.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public abstract class SpotifyEndpoint(public val api: GenericSpotifyApi) {
6161
}
6262

6363
internal suspend fun get(url: String): String {
64-
return execute(url).apply { println("body: $url") }
64+
return execute(url)
6565
}
6666

6767
internal suspend fun post(url: String, body: String? = null, contentType: String? = null): String {

src/commonTest/kotlin/com.adamratzman/spotify/TestUtilities.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ abstract class AbstractTest<T : GenericSpotifyApi> {
1313
(f as? T)?.let { if (f is Z) api = it }
1414
api != null
1515
} catch (cce: Exception) {
16-
println("here")
1716
false
1817
}
1918
}

src/jsTest/kotlin/com/adamratzman/spotify/CommonImpl.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import kotlinx.coroutines.MainScope
88
import kotlinx.coroutines.promise
99

1010
actual fun getEnvironmentVariable(name: String): String? {
11-
println("here $name")
12-
println(process.env[name].unsafeCast<String?>())
1311
return process.env[name].unsafeCast<String?>()
1412
}
1513

0 commit comments

Comments
 (0)