mirror of
https://github.com/danog/parser.git
synced 2025-01-22 21:11:55 +01:00
444e19b579
Signed-off-by: azjezz <azjezz@protonmail.com>
33 lines
684 B
Makefile
33 lines
684 B
Makefile
default:
|
|
@just --list
|
|
|
|
# build the library
|
|
build:
|
|
cargo build
|
|
|
|
# build integration tests
|
|
build-integration-tests:
|
|
BUILD_INTEGRATION_TESTS="1" cargo build
|
|
|
|
# detect linting problems.
|
|
lint:
|
|
cargo fmt --all -- --check
|
|
cargo clippy
|
|
|
|
# fix linting problems.
|
|
fix:
|
|
cargo fmt
|
|
cargo clippy --fix --allow-dirty --allow-staged
|
|
|
|
# dump AST for the given file.
|
|
dump file: build
|
|
cargo run --bin php-parser-rs -- {{file}}
|
|
|
|
# run all integration tests, except third-party.
|
|
test filter='': build-integration-tests
|
|
cargo test --all {{filter}} -- --skip third_party
|
|
|
|
# run integration tests for third-party libraries.
|
|
test-third-party: build
|
|
cargo test third_party
|