mirror of
https://github.com/danog/code-server.git
synced 2024-12-15 18:57:11 +01:00
20 lines
372 B
Bash
Executable File
20 lines
372 B
Bash
Executable File
#!/usr/bin/env sh
|
|
# test.sh -- Simple test for CI.
|
|
# We'll have more involved tests eventually. This just ensures the binary has
|
|
# been built and runs.
|
|
|
|
set -eu
|
|
|
|
main() {
|
|
cd "$(dirname "$0")/.."
|
|
|
|
version=$(./binaries/code-server* --version | head -1)
|
|
echo "Got '$version' for the version"
|
|
case $version in
|
|
*2.*-vsc1.41.1) exit 0 ;;
|
|
*) exit 1 ;;
|
|
esac
|
|
}
|
|
|
|
main "$@"
|