1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00

tidy-up: rename ci directory to scripts

To reduce differences with curl.

Also:
- add most scripts to the source distro tarball. Some were referenced
  by build scripts (e.g. `checksrc`).

Closes #1870
This commit is contained in:
Viktor Szakats
2026-04-23 00:15:19 +02:00
parent cbdb0a8caf
commit 317907545b
13 changed files with 20 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ jobs:
with:
persist-credentials: false
- name: 'checksrc'
run: ci/checksrc-all.pl
run: scripts/checksrc-all.pl
linters:
name: 'linters'
@@ -85,20 +85,20 @@ jobs:
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
shellcheck --version
ci/shellcheck.sh
scripts/shellcheck.sh
- name: 'spacecheck'
run: ci/spacecheck.pl
run: scripts/spacecheck.pl
- name: 'cmakelint'
run: |
source ~/venv/bin/activate
ci/cmakelint.sh
scripts/cmakelint.sh
- name: 'spellcheck'
run: |
source ~/venv/bin/activate
ci/spellcheck.sh
scripts/spellcheck.sh
build_integration:
name: 'CM integration ${{ matrix.image }}'

View File

@@ -550,8 +550,8 @@ endif()
if(LINT)
add_custom_target(lint ALL
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/ci/checksrc-all.pl"
DEPENDS "${PROJECT_SOURCE_DIR}/ci/checksrc-all.pl" "${PROJECT_SOURCE_DIR}/ci/checksrc.pl"
COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/checksrc-all.pl"
DEPENDS "${PROJECT_SOURCE_DIR}/scripts/checksrc-all.pl" "${PROJECT_SOURCE_DIR}/scripts/checksrc.pl"
)
if(BUILD_STATIC_LIBS)
add_dependencies(${LIB_STATIC} lint)

View File

@@ -37,9 +37,18 @@ OS400FILES = os400/README400 os400/initscript.sh os400/make.sh \
os400/libssh2rpg/libssh2_sftp.rpgle \
os400/rpg-examples/SFTPXMPLE
SCRIPTSFILES = \
scripts/checksrc-all.pl \
scripts/checksrc.pl \
scripts/cmakelint.sh \
scripts/spacecheck.pl \
scripts/spellcheck.sh \
scripts/codespell-ignore.words
EXTRA_DIST = $(WIN32FILES) get_ver.awk \
maketgz RELEASE-NOTES libssh2.pc.in $(VMSFILES) config.rpath \
CMakeLists.txt cmake git2news.pl libssh2-style.el README.md $(OS400FILES)
CMakeLists.txt cmake git2news.pl libssh2-style.el README.md $(OS400FILES) \
$(SCRIPTSFILES)
ACLOCAL_AMFLAGS = -I m4
@@ -81,4 +90,4 @@ gen-coverage:
coverage: init-coverage build-coverage gen-coverage
checksrc:
ci/checksrc-all.pl
scripts/checksrc-all.pl

View File

@@ -106,7 +106,7 @@ install:
- ps: |
$env:OPENSSH_SERVER_PORT = Get-Random -Minimum 2000 -Maximum 2300
[System.Environment]::SetEnvironmentVariable('OPENSSH_SERVER_PORT', $env:OPENSSH_SERVER_PORT)
.\ci\appveyor\docker-bridge.ps1
./scripts/appveyor/docker-bridge.ps1
build_script:
- cmd: sh -c ./appveyor.sh

View File

@@ -9,5 +9,5 @@ cd "$(dirname "$0")"/..
git ls-files -z | xargs -0 -r \
codespell \
--skip 'docs/AUTHORS' \
--ignore-words 'ci/codespell-ignore.words' \
--ignore-words 'scripts/codespell-ignore.words' \
--