-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cargo-make was originally chosen so that bash would not be a requirement for building, but now that msys2 is required on windows, bash will always be present. Just is a better choice here since rust is not the only language used. The install scripts are also now independent bash scripts that are not dependent on Just, so they can be used when building the flatpak.
- Loading branch information
Showing
31 changed files
with
328 additions
and
483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
build profile='dev': | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
case "{{profile}}" in | ||
dev) | ||
./gradlew assembleBluetoothDebug | ||
;; | ||
release) | ||
./gradlew assembleBluetoothRelease | ||
;; | ||
*) | ||
echo Invalid profile | ||
exit 1 | ||
esac | ||
|
||
test: | ||
cargo test | ||
./gradlew testBluetoothDebugUnitTest | ||
|
||
test-cov: | ||
cargo llvm-cov --no-report | ||
|
||
format: | ||
cargo fmt | ||
./gradlew ktlintFormat | ||
|
||
format-check: | ||
cargo fmt --check | ||
./gradlew ktlintCheck |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
build profile='dev': | ||
cargo build --profile {{profile}} | ||
|
||
test: | ||
cargo test --bins | ||
cargo test --no-default-features --features demo --test '*' | ||
|
||
test-cov: | ||
cargo llvm-cov --no-report --bins | ||
cargo llvm-cov --no-report --no-default-features --features demo --test '*' | ||
|
||
install prefix: | ||
./scripts/install.sh "{{prefix}}" | ||
|
||
uninstall prefix: | ||
./scripts/uninstall.sh "{{prefix}}" | ||
|
||
format: | ||
cargo fmt | ||
|
||
format-check: | ||
cargo fmt --check |
Oops, something went wrong.