From 6bfd9588d89bd8a9395503481f71bbb7903a5ddc Mon Sep 17 00:00:00 2001 From: az Date: Fri, 26 May 2023 10:02:04 +0200 Subject: [PATCH] [skip ci] remove joker --- .../provs/desktop/infrastructure/VSCode.kt | 11 ----------- .../provs/desktop/infrastructure/VSCodeKtTest.kt | 13 ------------- 2 files changed, 24 deletions(-) diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/VSCode.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/VSCode.kt index e62a8c5..8084a0f 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/VSCode.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/VSCode.kt @@ -23,8 +23,6 @@ fun Prov.installVSC(vararg options: String) = task { installExtensionsCode(pythonExtensions) installExtensionsCodium(pythonExtensions) } - - provisionAdditionalToolsForVSCode() } @@ -81,12 +79,3 @@ private fun Prov.installExtensionsCodium(extensions: List) = optional { res // Settings can be found at $HOME/.config/Code/User/settings.json } - - -internal fun Prov.provisionAdditionalToolsForVSCode() = task { - // Joker - val version = "1.1.0" - cmd("curl -Lo joker-${version}-linux-amd64.zip https://github.com/candid82/joker/releases/download/v${version}/joker-${version}-linux-amd64.zip") - cmd("unzip joker-${version}-linux-amd64.zip") - cmd("sudo mv joker /usr/local/bin/") -} diff --git a/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/VSCodeKtTest.kt b/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/VSCodeKtTest.kt index bead5cd..1be0270 100644 --- a/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/VSCodeKtTest.kt +++ b/src/test/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/VSCodeKtTest.kt @@ -2,25 +2,12 @@ package org.domaindrivenarchitecture.provs.desktop.infrastructure import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInstall import org.domaindrivenarchitecture.provs.test.defaultTestContainer -import org.domaindrivenarchitecture.provs.test.tags.ExtensiveContainerTest import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api.Disabled import org.junit.jupiter.api.Test internal class VSCodeKtTest { - @ExtensiveContainerTest - fun provisionAdditionalTools() { - // given - defaultTestContainer().aptInstall("curl unzip") - - // when - val res = defaultTestContainer().provisionAdditionalToolsForVSCode() - - // then - assertTrue(res.success) - } - @Test @Disabled("Test currently not working, needs fix. VSC is installed by snapd which is not currently supported to run inside docker") fun installVSC() {