Skip to content

Commit

Permalink
refactor: standardize justfile task names and parameters across projects
Browse files Browse the repository at this point in the history
  • Loading branch information
reez committed May 6, 2024
1 parent b7fe91b commit 7d95157
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 33 deletions.
21 changes: 12 additions & 9 deletions bdk-android/justfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
test:
./gradlew connectedAndroidTest

onetest TEST:
./gradlew test --tests {{TEST}}
default:
just --list

build:
./gradlew buildAndroidLib

publishlocal:
./gradlew publishToMavenLocal -P localBuild

clean:
rm -rf ../bdk-ffi/target/
rm -rf ./build/
rm -rf ./lib/build/
rm -rf ./plugins/build/
rm -rf ./plugins/build/

publish-local:
./gradlew publishToMavenLocal -P localBuild

test:
./gradlew connectedAndroidTest

test-specific TEST:
./gradlew test --tests {{TEST}}
13 changes: 8 additions & 5 deletions bdk-ffi/justfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
default:
just --list

build:
cargo build

test:
cargo test --lib

check:
cargo fmt
cargo clippy
cargo fmt
cargo clippy

test:
cargo test --lib
25 changes: 14 additions & 11 deletions bdk-jvm/justfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
test:
./gradlew test

offlinetests:
./gradlew test -P excludeConnectedTests

onetest TEST:
./gradlew test --tests {{TEST}}
default:
just --list

build:
./gradlew buildJvmLib

publishlocal:
./gradlew publishToMavenLocal -P localBuild

clean:
rm -rf ../bdk-ffi/target/
rm -rf ./build/
rm -rf ./lib/build/
rm -rf ./plugins/build/

publish-local:
./gradlew publishToMavenLocal -P localBuild

test:
./gradlew test

test-offline:
./gradlew test -P excludeConnectedTests

test-specific TEST:
./gradlew test --tests {{TEST}}
9 changes: 6 additions & 3 deletions bdk-python/justfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
test:
python3 -m unittest --verbose
default:
just --list

maclocalbuild:
build-local-mac:
bash ./scripts/generate-macos-arm64.sh && python3 setup.py bdist_wheel --verbose

clean:
rm -rf ../bdk-ffi/target/
rm -rf ./bdkpython.egg-info/
rm -rf ./build/
rm -rf ./dist/

test:
python3 -m unittest --verbose
13 changes: 8 additions & 5 deletions bdk-swift/justfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
default:
just --list

build:
bash ./build-local-swift.sh

clean:
rm -rf ../bdk-ffi/target/

test:
swift test

offlinetests:
swift test --skip LiveWalletTests --skip LiveTxBuilderTests

clean:
rm -rf ../bdk-ffi/target/
test-offline:
swift test --skip LiveWalletTests --skip LiveTxBuilderTests

0 comments on commit 7d95157

Please sign in to comment.