From 681cc8882f7995407c33eb48730daaa901074460 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sat, 4 Apr 2020 15:32:14 -0700 Subject: Move nitrocli source code into repository root Now that all vendored dependencies have been removed, this change moves the program's source code from the nitrocli/ directory into the root of the repository. --- ci/gitlab-ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ci/gitlab-ci.yml (limited to 'ci') diff --git a/ci/gitlab-ci.yml b/ci/gitlab-ci.yml new file mode 100644 index 0000000..729944d --- /dev/null +++ b/ci/gitlab-ci.yml @@ -0,0 +1,26 @@ +# The documentation for the contents of this file can be found at: +# https://docs.gitlab.com/ce/ci/yaml/README.html + +# Official language image. Look for the different tagged releases at: +# https://hub.docker.com/r/library/rust/tags/ +# The recipe for this docker image can be found at: +# https://github.com/rust-lang/docker-rust/blob/29bf41a2cc4fb8d3f588cf51eb6a8ba883808c4b/1.35.0/stretch/Dockerfile +image: "rust:1.35.0" + +build-test:cargo: + script: + - apt-get update + - apt-get install --assume-yes libudev-dev libhidapi-dev + - rustc --version && cargo --version + - cargo build --all --verbose + - cargo test --all --verbose + +lint:clippy: + script: + - rustup component add clippy + - cargo clippy --all-targets --all-features -- -D warnings + +format:rustfmt: + script: + - rustup component add rustfmt + - cargo fmt --all -- --check -- cgit v1.2.3