-
Notifications
You must be signed in to change notification settings - Fork 3
chore: add just launcher commands #962
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
Open
ovitrif
wants to merge
5
commits into
master
Choose a base branch
from
chore/add-just
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,16 @@ | ||
| # Copy to .env and uncomment only what you need. | ||
|
|
||
| # GITHUB_ACTOR= | ||
| # GITHUB_TOKEN= | ||
| # TX_TOKEN= | ||
|
|
||
| # KEYSTORE_FILE= | ||
| # KEYSTORE_PASSWORD= | ||
| # KEY_ALIAS= | ||
| # KEY_PASSWORD= | ||
|
|
||
| # E2E_BACKEND=local | ||
| # E2E_HOMEGATE_URL=http://127.0.0.1:6288 | ||
|
|
||
| # TREZOR_BRIDGE=true | ||
| # TREZOR_BRIDGE_URL=http://10.0.2.2:21325 |
This file contains hidden or 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 hidden or 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 hidden or 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,75 @@ | ||
| set dotenv-load := true | ||
| set dotenv-filename := ".env" | ||
| set windows-shell := ["sh", "-cu"] | ||
|
|
||
| gradle := "./gradlew" | ||
|
|
||
| default: | ||
| @just list | ||
|
|
||
| list: | ||
| @printf "%s\n" \ | ||
| "list" \ | ||
| "init" \ | ||
| "compile" \ | ||
| "build [TASK]" \ | ||
| "release" \ | ||
| "install" \ | ||
| "test" \ | ||
| "test file PATTERN" \ | ||
| "test android" \ | ||
| "test lane LANE" \ | ||
| "lint" \ | ||
| "lint baseline" \ | ||
| "format" \ | ||
| "translations pull" \ | ||
| "translations push" \ | ||
| "translations push source" \ | ||
| "e2e [network|no geo|TASK] [TASK]" \ | ||
| "changelog [all|next|hotfix]" \ | ||
| "clean" | ||
|
|
||
| init: | ||
| #!/usr/bin/env sh | ||
| set -eu | ||
|
|
||
| if [ -e .env ]; then | ||
| echo ".env already exists" | ||
| exit 0 | ||
| fi | ||
|
|
||
| cp .env.example .env | ||
| echo "Created .env" | ||
|
|
||
| compile: | ||
| {{ gradle }} compileDevDebugKotlin | ||
|
|
||
| build task="assembleDevDebug": | ||
| {{ gradle }} {{ task }} | ||
|
|
||
| release: | ||
| {{ gradle }} assembleMainnetRelease bundleMainnetRelease | ||
|
|
||
| install: | ||
| {{ gradle }} installDevDebug | ||
|
|
||
| test target="" value="": | ||
| {{ if target == "" { gradle + " testDevDebugUnitTest" } else if target == "android" { gradle + " connectedDevDebugAndroidTest" } else if target == "file" { if value == "" { error("usage: just test file PATTERN") } else { gradle + " testDevDebugUnitTest --tests '" + value + "'" } } else if target == "lane" { if value == "" { error("usage: just test lane LANE") } else { gradle + " connectedDevDebug" + value + "AndroidTest" } } else { error("usage: just test [file PATTERN|android|lane LANE]") } }} | ||
|
|
||
| lint target="": | ||
| {{ if target == "" { gradle + " detekt --rerun-tasks" } else if target == "baseline" { gradle + " detektBaseline --rerun-tasks" } else { error("usage: just lint [baseline]") } }} | ||
|
|
||
| format: | ||
| {{ gradle }} detekt --auto-correct --rerun-tasks | ||
|
|
||
| translations action value="": | ||
| {{ if action == "pull" { "./scripts/pull-translations.sh" } else if action == "push" { if value == "" { "./scripts/push-translations.sh" } else if value == "source" { "tx push --source" } else { error("usage: just translations push [source]") } } else { error("usage: just translations pull|push [source]") } }} | ||
|
|
||
| e2e mode="" value="" task="assembleDevRelease": | ||
| {{ if mode == "" { "E2E=true " + gradle + " " + task } else if mode == "network" { "E2E=true E2E_BACKEND=network " + gradle + " " + if value == "" { task } else { value } } else if mode == "no" { if value == "geo" { "GEO=false E2E=true " + gradle + " " + task } else { error("usage: just e2e no geo [TASK]") } } else { "E2E=true " + gradle + " " + mode } }} | ||
|
|
||
| changelog target="all": | ||
| ./scripts/preview-changelog.sh --target {{ target }} | ||
|
|
||
| clean: | ||
| {{ gradle }} clean |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.