Skip to content

Commit

Permalink
Merge pull request #23 from Qiskit/local-ci-script
Browse files Browse the repository at this point in the history
Add script to run CI locally
  • Loading branch information
jlapeyre authored Jan 13, 2024
2 parents 3f74976 + 93d79ab commit 15d9220
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
12 changes: 0 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
target/
/Cargo.lock
dev_docs/diagrams
crates/oq3_syntax/examples/oq3_source
crates/oq3_syntax/examples/hideold
organization.md
parser_design.md
restorenodes.sh
restorgenerated.sh
crates/parser/src/syntax_kind/_syntax_kind_enum.rs
crates/oq3_syntax/src/ast/generated/_new_nodes.rs
crates/oq3_syntax/src/ast/generated/_new_tokens.rs
.venv/
.venvs/
.env/
.envs/
.ackrc
6 changes: 6 additions & 0 deletions local_CI.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/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 15d9220

Please sign in to comment.