Add linting steps and improve testing steps

This commit is contained in:
Asher
2020-02-04 15:00:44 -06:00
parent b29346ecdf
commit b30aefcfb1
7 changed files with 175 additions and 87 deletions

19
scripts/test.sh Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env sh
# test.sh -- Simple build test.
set -eu
main() {
cd "$(dirname "$0")/.."
# The main goal here is to ensure that the build fully completed and the
# result looks usable.
version=$(node ./build/out/node/entry.js --version --json)
echo "Got '$version' for the version"
case $version in
"{ codeServer":*) exit 0 ;;
*) exit 1 ;;
esac
}
main "$@"