radicle-git init

Port over all git relevant parts of the radicle-link repository[0].
The packages that are kept are:
* git-ext
* git-ref-format
* git-trailers
* link-git
* macros
* std-ext
* test -- only the portions that test the above

The development and testing scripts are also added for local and CI
testing.

[0]: https://github.com/radicle-dev/radicle-link/
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
This commit is contained in:
Fintan Halpenny
2022-09-08 12:07:51 +01:00
parent c43420956c
commit 70b571b67b
112 changed files with 10341 additions and 7 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -eoux pipefail
cargo deny --version
cargo deny check advisories
cargo deny check licenses
cargo deny check bans
cargo deny check sources
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -eoux pipefail
cargo build --tests --workspace
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -eoux pipefail
RUSTDOCFLAGS="-D rustdoc::broken-intra-doc-links -D warnings" \
cargo doc --no-deps --workspace --document-private-items
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -eoux pipefail
cargo +nightly fmt -- --check
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -eoux pipefail
# Force clippy to consider all local sources
# https://github.com/rust-lang/rust-clippy/issues/4612
find . -name "*.rs" -not -path "./target/*" -exec touch "{}" +
cargo clippy --all-targets -- -D warnings
+5
View File
@@ -0,0 +1,5 @@
if brew ls --versions gnu-tar > /dev/null; then
echo "gnu-tar is already installed"
else
brew install gnu-tar
fi
Executable
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -eou pipefail
./scripts/ci/fmt
./scripts/ci/lint
./scripts/ci/advisory
./scripts/ci/build
./scripts/ci/test
./scripts/ci/docs
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -eoux pipefail
RUST_LOG=error ssh-agent cargo nextest run \
--status-level all \
--failure-output immediate-final \
--no-fail-fast \
--retries 2
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -eoux pipefail
cargo nextest run --no-fail-fast tests properties