Skip to content
Snippets Groups Projects
Commit 7b9104e2 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

refactor the CI into a Makefile (dragoon/komodo!41)

as per title
parent 4c1b0a25
No related branches found
No related tags found
1 merge request!41refactor the CI into a Makefile
Pipeline #4497 failed
......@@ -23,7 +23,7 @@ fmt:
- rustup component add rustfmt
script:
- cargo fmt --all -- --check
- make fmt
test:
stage: test
......@@ -36,12 +36,6 @@ test:
- rustup component add clippy
- rustup --version
- rustup show --verbose
- rustc --version
- cargo --version
- cargo clippy --version
- export NUSHELL_BUILD="nu-$NUSHELL_VERSION-$NUSHELL_ARCH"
- export PATH="/tmp/:$PATH"
......@@ -50,12 +44,7 @@ test:
- tar xvf /tmp/nu.tar.gz --directory /tmp
- cp "/tmp/$NUSHELL_BUILD/nu" /tmp/nu
- nu --version
- make show
script:
- cargo check --workspace --all-targets
- cargo clippy --workspace --all-targets -- -D warnings
- cargo test --workspace --verbose
- nu tests/cli.nu
- nu tests/binary.nu
- nu examples/cli.nu
- make check clippy test example
Makefile 0 → 100644
.PHONY: fmt check clippy test example show
DEFAULT_GOAL: fmt check clippy test
fmt:
cargo fmt --all -- --check
check:
cargo check --workspace --all-targets
clippy:
cargo clippy --workspace --all-targets -- -D warnings
test:
cargo test --workspace --verbose
nu tests/cli.nu
nu tests/binary.nu
example:
nu examples/cli.nu
show:
rustup --version
rustup show --verbose
rustc --version
cargo --version
cargo clippy --version
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment