mirror of
https://github.com/danog/code-server.git
synced 2024-12-15 18:57:11 +01:00
6282cd7e7b
Much better test now as well.
28 lines
774 B
Bash
Executable File
28 lines
774 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Makes sure the release works.
|
|
# This is to make sure we don't have Node version errors or any other
|
|
# compilation-related errors.
|
|
main() {
|
|
cd "$(dirname "${0}")/../.."
|
|
|
|
local EXTENSIONS_DIR
|
|
EXTENSIONS_DIR="$(mktemp -d)"
|
|
|
|
echo "Testing static release"
|
|
|
|
./release-static/bin/code-server --extensions-dir "$EXTENSIONS_DIR" --install-extension ms-python.python
|
|
local installed_extensions
|
|
installed_extensions="$(./release-static/bin/code-server --extensions-dir "$EXTENSIONS_DIR" --list-extensions 2>&1)"
|
|
if [[ $installed_extensions != "ms-python.python" ]]; then
|
|
echo "Unexpected output from listing extensions:"
|
|
echo "$installed_extensions"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Static release works correctly"
|
|
}
|
|
|
|
main "$@"
|