aboutsummaryrefslogtreecommitdiff
path: root/ci/common
diff options
context:
space:
mode:
Diffstat (limited to 'ci/common')
-rw-r--r--ci/common/build.sh2
-rwxr-xr-xci/common/submit_coverage.sh4
-rw-r--r--ci/common/suite.sh19
-rw-r--r--ci/common/test.sh5
4 files changed, 14 insertions, 16 deletions
diff --git a/ci/common/build.sh b/ci/common/build.sh
index 0ee4b7493f..c44c234274 100644
--- a/ci/common/build.sh
+++ b/ci/common/build.sh
@@ -8,8 +8,6 @@ _stat() {
top_make() {
printf '%78s\n' | tr ' ' '='
- # Travis has 1.5 virtual cores according to:
- # http://docs.travis-ci.com/user/speeding-up-the-build/#Paralellizing-your-build-on-one-VM
ninja "$@"
}
diff --git a/ci/common/submit_coverage.sh b/ci/common/submit_coverage.sh
index 9c7887de0b..cb6ab62b5b 100755
--- a/ci/common/submit_coverage.sh
+++ b/ci/common/submit_coverage.sh
@@ -18,12 +18,12 @@ if ! [ -f "$codecov_sh" ]; then
curl --retry 5 --silent --fail -o "$codecov_sh" https://codecov.io/bash
chmod +x "$codecov_sh"
- python3 -m pip install --quiet --user gcovr
+ python -m pip install --quiet --user gcovr
fi
(
cd build
- python3 -m gcovr --branches --exclude-unreachable-branches --print-summary -j 2 --exclude '.*/auto/.*' --root .. --delete -o ../coverage.xml --xml
+ python -m gcovr --branches --exclude-unreachable-branches --print-summary -j 2 --exclude '.*/auto/.*' --root .. --delete -o ../coverage.xml --xml
)
# Upload to codecov.
diff --git a/ci/common/suite.sh b/ci/common/suite.sh
index 561849ce2d..f6a8c22d21 100644
--- a/ci/common/suite.sh
+++ b/ci/common/suite.sh
@@ -73,13 +73,8 @@ fail() {
run_test() {
local cmd="$1"
- test $# -gt 0 && shift
- local test_name="$1"
- : ${test_name:=$cmd}
- test $# -gt 0 && shift
- if ! eval "$cmd" ; then
- fail "${test_name}" "$@"
- fi
+ local test_name="$2"
+ eval "$cmd" || fail "$test_name"
}
ended_successfully() {
@@ -99,3 +94,13 @@ end_tests() {
touch "${END_MARKER}"
ended_successfully
}
+
+run_suite() {
+ local command="$1"
+ local suite_name="$2"
+
+ enter_suite "$suite_name"
+ run_test "$command" "$suite_name"
+ exit_suite --continue
+}
+
diff --git a/ci/common/test.sh b/ci/common/test.sh
index 92c15c8ba1..798f2926c6 100644
--- a/ci/common/test.sh
+++ b/ci/common/test.sh
@@ -182,8 +182,3 @@ install_nvim() {(
exit_suite
)}
-
-csi_clean() {
- find "${BUILD_DIR}/bin" -name 'test-includes-*' -delete
- find "${BUILD_DIR}" -name '*test-include*.o' -delete
-}