From 1fd32ce04f6c7f4f8069c3ab10c13da5f6f29971 Mon Sep 17 00:00:00 2001 From: John Lapeyre Date: Fri, 12 Jan 2024 16:13:49 -0500 Subject: [PATCH] Add script to run CI locally * This is the same CI that runs remotely automatically with PRs. This is a posix shell script. * Remove a bit of cruft as well --- .gitignore | 1 + local_CI.sh | 6 ++++++ rust-toolchain.toml | 2 -- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 local_CI.sh diff --git a/.gitignore b/.gitignore index a4fc2d6..34d63e0 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ crates/oq3_syntax/src/ast/generated/_new_tokens.rs .env/ .envs/ .ackrc +save/ diff --git a/local_CI.sh b/local_CI.sh new file mode 100644 index 0000000..c69437e --- /dev/null +++ b/local_CI.sh @@ -0,0 +1,6 @@ +#!/bin/env sh + +# Run locally the same checks that are done remotely in CI +# Works on linux, and maybe Mac OS. + +cargo fmt --all -- --check && cargo build --verbose && cargo clippy -- -D warnings && cargo test --verbose -- --skip sourcegen_ast --skip sourcegen_ast_nodes diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e9fb493..ba6b123 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -3,8 +3,6 @@ # Copyright contributors to the openqasm-parser project -# FIXME: Our min required version is > than 1.64.0 - channel = "1.70.0" components = [ "cargo",