Skip to content

Commit

Permalink
Update readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
kudoleh committed Jan 9, 2020
1 parent 5e8cbcf commit 3f1da63
Showing 1 changed file with 31 additions and 29 deletions.
60 changes: 31 additions & 29 deletions README.md
Expand Up @@ -212,37 +212,39 @@ Also closures or delegation can be used.

# Module's Testing in CI/CD [Optional]:

* To keep always our modules buildable we need to build and run tests for each module on our Pipeline in CI. As example we can use [Fastlane](fastlane/Fastfile) and [Travis CI](.travis.yml):

```ruby
lane :test do |options|
* To keep always our modules buildable we need to build and run tests for each module on our Pipeline in CI. As example we can use [Fastlane](https://docs.fastlane.tools/actions/scan/) and [Travis CI](https://travis-ci.org/):

# Check if all modules are buildable
all_modules_schemes.each do |s|
UI.message "Testing if module #{s} is buildable"
scan(
scheme: s,
device: simulator,
build_for_testing: true,
)
end
# Run all unit and UI tests, and test if App is buildable
scan(
scheme: "App",
device: simulator,
)
* [Fastlane script](fastlane/Fastfile)

```ruby
lane :test do |options|
end
```
# Check if all modules are buildable
all_modules_schemes.each do |s|
UI.message "Testing if module #{s} is buildable"
scan(
scheme: s,
device: simulator,
build_for_testing: true,
)
end
# Run all unit and UI tests, and test if App is buildable
scan(
scheme: "App",
device: simulator,
)
```ruby
os: osx
osx_image: xcode11.2
language: swift
script:
- fastlane test
```
end
```
* [Travis CI script](.travis.yml)
```ruby
os: osx
osx_image: xcode11.2
language: swift
script:
- fastlane test
```

**Check medium post for more information**: <a href="https://tech.olx.com/modular-architecture-in-ios-c1a1e3bff8e9">Medium Post </a>

0 comments on commit 3f1da63

Please sign in to comment.