Skip to content

Commit

Permalink
Add script to run CI locally
Browse files Browse the repository at this point in the history
* This is the same CI that runs remotely automatically with PRs. This is a
  posix shell script.
* Remove a bit of cruft as well
  • Loading branch information
jlapeyre committed Jan 12, 2024
1 parent 3f74976 commit 1fd32ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ crates/oq3_syntax/src/ast/generated/_new_tokens.rs
.env/
.envs/
.ackrc
save/
6 changes: 6 additions & 0 deletions local_CI.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1fd32ce

Please sign in to comment.