Commit a11d0147 authored by Chuck LeDuc Díaz's avatar Chuck LeDuc Díaz
Browse files

remove husky :(

parent 10bd6e7a
Pipeline #99256647 passed with stage
in 7 minutes and 37 seconds
......@@ -3,11 +3,11 @@
stages:
- build
# define build script
.buildscript: &buildscript
.prepare: &prepare
- rustc --version && cargo --version
- rustup component add rustfmt
- rustup component add clippy
.verify: &verify
- cargo fmt -- --check
- cargo build --verbose
- cargo test --verbose
......@@ -17,11 +17,15 @@ test:latest:
stage: build
image: rust:latest
script:
- *buildscript
- *prepare
- rustup component add clippy
- cargo clippy
- *verify
# build target: rust nightly version
test:nightly:
stage: build
image: rustlang/rust:nightly
script:
- *buildscript
- *prepare
- *verify
......@@ -36,7 +36,11 @@ wasm-bindgen-test = "0.2"
[profile.release]
opt-level = "s"
[dev-dependencies.cargo-husky]
version = "1.4.0"
default-features = false # Disable features which are enabled by default
features = ["precommit-hook", "run-cargo-test", "run-cargo-clippy", "run-cargo-fmt"]
#Husky is awesome but it fails in CI with the following errors:
# error: failed to run custom build command for `cargo-husky v1.4.0`
# Error: IO error: No such file or directory (os error 2)
# ... which is why we can't have nice things.
#[dev-dependencies.cargo-husky]
#version = "1.4.0"
#default-features = false # Disable features which are enabled by default
#features = ["prepush-hook", "run-cargo-test", "run-cargo-clippy", "run-cargo-fmt"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment