2015-07-05 09:52:36 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
source "${CI_DIR}/common/build.sh"
|
|
|
|
source "${CI_DIR}/common/test.sh"
|
2017-03-31 15:02:53 +02:00
|
|
|
source "${CI_DIR}/common/suite.sh"
|
|
|
|
|
2017-05-01 05:45:24 +02:00
|
|
|
enter_suite build
|
2015-07-05 09:52:36 +02:00
|
|
|
|
2016-11-04 16:20:58 +01:00
|
|
|
check_core_dumps --delete quiet
|
|
|
|
|
2016-09-10 21:48:45 +02:00
|
|
|
prepare_build
|
2015-07-05 09:52:36 +02:00
|
|
|
build_nvim
|
|
|
|
|
2017-05-01 05:45:24 +02:00
|
|
|
exit_suite --continue
|
|
|
|
|
2019-12-31 00:47:49 +01:00
|
|
|
source ~/.nvm/nvm.sh
|
|
|
|
nvm use 10
|
2019-06-09 13:26:48 +02:00
|
|
|
export TREE_SITTER_DIR=$HOME/tree-sitter-build/
|
|
|
|
|
2020-01-01 04:22:56 +01:00
|
|
|
enter_suite tests
|
|
|
|
|
2017-05-01 05:45:24 +02:00
|
|
|
if test "$CLANG_SANITIZER" != "TSAN" ; then
|
2015-08-28 17:29:15 +02:00
|
|
|
# Additional threads are only created when the builtin UI starts, which
|
|
|
|
# doesn't happen in the unit/functional tests
|
2018-02-01 19:27:51 +01:00
|
|
|
if test "${FUNCTIONALTEST}" != "functionaltest-lua"; then
|
|
|
|
run_test run_unittests
|
|
|
|
fi
|
2017-03-31 15:02:53 +02:00
|
|
|
run_test run_functionaltests
|
2015-08-28 17:29:15 +02:00
|
|
|
fi
|
2017-03-31 15:02:53 +02:00
|
|
|
run_test run_oldtests
|
|
|
|
|
|
|
|
run_test install_nvim
|
2015-07-05 09:52:36 +02:00
|
|
|
|
2017-05-01 05:45:24 +02:00
|
|
|
exit_suite --continue
|
|
|
|
|
2017-04-04 19:15:30 +02:00
|
|
|
end_tests
|