mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge #19324 ci: cleanup ci/ files
This commit is contained in:
commit
5c49129c5e
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -108,7 +108,7 @@ jobs:
|
|||||||
|
|
||||||
- if: "!cancelled()"
|
- if: "!cancelled()"
|
||||||
name: lintcfull
|
name: lintcfull
|
||||||
run: ./ci/run_lint.sh lintcfull
|
run: make lintcfull
|
||||||
|
|
||||||
- if: "!cancelled()"
|
- if: "!cancelled()"
|
||||||
name: lintstylua
|
name: lintstylua
|
||||||
@ -125,19 +125,19 @@ jobs:
|
|||||||
|
|
||||||
- if: "!cancelled()"
|
- if: "!cancelled()"
|
||||||
name: lintlua
|
name: lintlua
|
||||||
run: ./ci/run_lint.sh lintlua
|
run: make lintlua
|
||||||
|
|
||||||
- if: "!cancelled()"
|
- if: "!cancelled()"
|
||||||
name: lintpy
|
name: lintpy
|
||||||
run: ./ci/run_lint.sh lintpy
|
run: make lintpy
|
||||||
|
|
||||||
- if: "!cancelled()"
|
- if: "!cancelled()"
|
||||||
name: lintsh
|
name: lintsh
|
||||||
run: ./ci/run_lint.sh lintsh
|
run: make lintsh
|
||||||
|
|
||||||
- if: "!cancelled()"
|
- if: "!cancelled()"
|
||||||
name: check-single-includes
|
name: check-single-includes
|
||||||
run: ./ci/run_lint.sh check-single-includes
|
run: make check-single-includes
|
||||||
|
|
||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
run: ./ci/before_cache.sh
|
run: ./ci/before_cache.sh
|
||||||
|
2
.github/workflows/env.sh
vendored
2
.github/workflows/env.sh
vendored
@ -9,7 +9,6 @@ EOF
|
|||||||
|
|
||||||
cat <<EOF >> "$GITHUB_ENV"
|
cat <<EOF >> "$GITHUB_ENV"
|
||||||
CACHE_ENABLE=true
|
CACHE_ENABLE=true
|
||||||
CI_TARGET=tests
|
|
||||||
CI_BUILD_DIR=$GITHUB_WORKSPACE
|
CI_BUILD_DIR=$GITHUB_WORKSPACE
|
||||||
BUILD_DIR=$GITHUB_WORKSPACE/build
|
BUILD_DIR=$GITHUB_WORKSPACE/build
|
||||||
DEPS_BUILD_DIR=$HOME/nvim-deps
|
DEPS_BUILD_DIR=$HOME/nvim-deps
|
||||||
@ -58,7 +57,6 @@ EOF
|
|||||||
DEPS_CMAKE_FLAGS="$DEPS_CMAKE_FLAGS -DUSE_BUNDLED_LUV=ON"
|
DEPS_CMAKE_FLAGS="$DEPS_CMAKE_FLAGS -DUSE_BUNDLED_LUV=ON"
|
||||||
cat <<EOF >> "$GITHUB_ENV"
|
cat <<EOF >> "$GITHUB_ENV"
|
||||||
USE_BUNDLED=OFF
|
USE_BUNDLED=OFF
|
||||||
CI_TARGET=lint
|
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
functionaltest-lua)
|
functionaltest-lua)
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
#!/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/suite.sh"
|
|
||||||
|
|
||||||
rm -f "$END_MARKER"
|
|
||||||
|
|
||||||
# Run all tests if no input argument is given
|
|
||||||
if (($# == 0)); then
|
|
||||||
tests=('lintcfull' 'lintlua' 'lintpy' 'lintsh' 'check-single-includes')
|
|
||||||
else
|
|
||||||
tests=("$@")
|
|
||||||
fi
|
|
||||||
|
|
||||||
for i in "${tests[@]}"; do
|
|
||||||
make "$i" || fail "$i"
|
|
||||||
done
|
|
||||||
|
|
||||||
end_tests
|
|
@ -33,3 +33,9 @@ for i in "${tests[@]}"; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
end_tests
|
end_tests
|
||||||
|
|
||||||
|
if [[ -s "${GCOV_ERROR_FILE}" ]]; then
|
||||||
|
echo '=== Unexpected gcov errors: ==='
|
||||||
|
cat "${GCOV_ERROR_FILE}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
12
ci/script.sh
12
ci/script.sh
@ -1,12 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
ci/run_${CI_TARGET}.sh
|
|
||||||
|
|
||||||
if [[ -s "${GCOV_ERROR_FILE}" ]]; then
|
|
||||||
echo '=== Unexpected gcov errors: ==='
|
|
||||||
cat "${GCOV_ERROR_FILE}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user