Skip to content

Commit

Permalink
feat: Improve prepare command
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Bossard committed Sep 28, 2020
1 parent 373a9ee commit d6d2cd6
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions run-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def publish(self) -> None:
self.publish_pod()


def prepare(tanker_source: TankerSource, update: bool) -> None:
def prepare(tanker_source: TankerSource, update: bool) -> Builder:
artifact_path = Path.getcwd() / "package"
if tanker_source == TankerSource.UPSTREAM:
profiles = [d.basename() for d in artifact_path.dirs()]
Expand All @@ -244,17 +244,16 @@ def prepare(tanker_source: TankerSource, update: bool) -> None:
profiles=profiles,
update=update,
)


def build_and_test(*, tanker_source: TankerSource) -> None:
tankerci.conan.update_config()
src_path = Path.getcwd()
prepare(tanker_source, False)

builder = Builder(src_path=src_path, debug=debug, profiles=PROFILES)
builder = Builder(src_path=Path.getcwd(), profiles=PROFILES)
builder.handle_sdk_deps(tanker_source=tanker_source)
builder.generate_podspec()
builder.handle_ios_deps()
return builder


def build_and_test(*, tanker_source: TankerSource,) -> None:
tankerci.conan.update_config()
builder = prepare(tanker_source, False)
builder.build_and_test_pod()


Expand Down

0 comments on commit d6d2cd6

Please sign in to comment.