Skip to content

Commit

Permalink
Merge pull request #112 from niscy-eudiw/main
Browse files Browse the repository at this point in the history
New Lane for running all unit tests
  • Loading branch information
stzouvaras authored May 31, 2024
2 parents 05d7ac6 + bce0595 commit 527a05e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
19 changes: 15 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,19 @@ require "date"
default_platform(:android)

platform :android do
desc "Build Wallet and upload it to appcenter"

desc "Runs all the unit tests"
lane :tests do

# Run tests
gradle(task: "clean")
gradle(task: "test#{ENV["APP_BUILD_TYPE"]}DebugUnitTest")

# Clean Artifacts
clean_build_artifacts
end

desc "Build Wallet and upload it to appcenter"
lane :deploy do
git_pull

Expand Down Expand Up @@ -59,7 +70,7 @@ platform :android do

clean_build_artifacts
reset_versioncode
reset_versionname
reset_versionName

add_git_tag(
tag: tagVersion,
Expand Down Expand Up @@ -144,15 +155,15 @@ platform :android do
end

desc "Set versionName back to default yyyy.d.m"
lane :reset_versionname do
lane :reset_versionName do
set_properties_value(
path: "version.properties",
key: "VERSION_NAME",
value: "yyyy.mm.v",
)
end

desc "Build Version"
desc "Build VersionName based on CalVer"
lane :calver do |values|
buildCode = values[:buildCode]
date = DateTime.now
Expand Down
14 changes: 11 additions & 3 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do

## Android

### android tests

```sh
[bundle exec] fastlane android tests
```

Runs all the unit tests

### android deploy

```sh
Expand Down Expand Up @@ -71,10 +79,10 @@ Get version version From Project

Set versionCode back to default 1

### android reset_versionname
### android reset_versionName

```sh
[bundle exec] fastlane android reset_versionname
[bundle exec] fastlane android reset_versionName
```

Set versionName back to default yyyy.d.m
Expand All @@ -85,7 +93,7 @@ Set versionName back to default yyyy.d.m
[bundle exec] fastlane android calver
```

Build Version
Build VersionName based on CalVer

----

Expand Down

0 comments on commit 527a05e

Please sign in to comment.