mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-05-19 05:58:43 -04:00
Mark upgrade feature as manual. Remove related resources.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
Feature: Upgrade
|
||||
|
||||
@manual
|
||||
Scenario: Upgrade an outdated installation
|
||||
Given an initialised system
|
||||
When I enter "gvm selfupdate"
|
||||
|
||||
@@ -30,15 +30,15 @@ class VertxUtils {
|
||||
def rm = new RouteMatcher()
|
||||
|
||||
rm.get("/") { req ->
|
||||
req.response.sendFile('srv/scripts/install.sh')
|
||||
req.response.sendFile('build/scripts/install.sh')
|
||||
}
|
||||
|
||||
rm.get("/selfupdate") { req ->
|
||||
req.response.sendFile('src/test/resources/selfupdate.sh')
|
||||
req.response.sendFile('build/scripts/selfupdate.sh')
|
||||
}
|
||||
|
||||
rm.get("/res") { req ->
|
||||
req.response.sendFile('src/test/resources/res.zip')
|
||||
req.response.sendFile('build/distributions/gvm-scripts.zip')
|
||||
}
|
||||
|
||||
rm.get("/candidates") { req ->
|
||||
|
||||
Binary file not shown.
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Updating gvm scripts..."
|
||||
TMP_ZIP="/tmp/res.zip"
|
||||
BIN_FOLDER="/tmp/gvm/bin"
|
||||
|
||||
echo "Creating $BIN_FOLDER"
|
||||
mkdir -p "$BIN_FOLDER"
|
||||
|
||||
echo "Calling $GVM_SERVICE/res?platform=$PLATFORM"
|
||||
curl -s "$GVM_SERVICE/res?platform=$PLATFORM" > "$TMP_ZIP"
|
||||
|
||||
echo "Unzip to $BIN_FOLDER"
|
||||
unzip -qo "$TMP_ZIP" -d "$BIN_FOLDER"
|
||||
rm "$TMP_ZIP"
|
||||
|
||||
chmod +x "$BIN_FOLDER"/*
|
||||
|
||||
echo ""
|
||||
echo "Successfully upgraded GVM."
|
||||
echo ""
|
||||
Reference in New Issue
Block a user