Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to run CI locally #23

Merged
merged 3 commits into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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