Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Feb 17, 2022. It is now read-only.
/pumaPublic archive

Puma

License

NotificationsYou must be signed in to change notification settings

pumaswift/puma

Repository files navigation

https://github.com/onmyway133/Swiftlane

Puma is a set of build utilities to automate mobile application development and deployment.

Unlike other command line tool that you need to understand lots of command line arguments, Puma is intended to be used as a Swift library. Just import in your Swift script file and run. There's no additional configuration file, your Swift script file is the source of truth. With auto completion and type safety, you are ensured to do the right things in Puma.

  • Puma and its dependencies are written in pure Swift, making it easy to read and contribute.
  • Use latest Swift 5.1 features like function builder to enable declarative syntax
  • Type-safe. All required and optional arguments are clear.
  • No configuration file. Your Swift script is your definition.
  • Simple wrapper around existing tools like xcodebuild, instruments and agvtool
  • Reuse awesome Swift scripting dependencies from Swift community

To see Puma in action, see thisgif

Below is an example script where it performs the following tasks and finally it posts to slack, for more detailed information check the documentation

import Foundationimport Pumaimport PumaCoreimport PumaiOSletworkflow=Workflow{RunScript{        $0.script="echo 'Hello Puma'"}Screenshot{        $0.configure(            projectType:.project("TestApp"),            appScheme:"TestApp",            uiTestScheme:"TestAppUITests",            saveDirectory:Directory.downloads.appendingPathComponent("PumaScreenshots").path)                $0.add(scenarios:[.init(                destination:.init(                    name:Destination.Name.iPhone11,                    platform:Destination.Platform.iOSSimulator,                    os:Destination.OS.iOS13_2_2),                language:Language.en_US,                locale:Locale.en_US),.init(                destination:.init(                    name:Destination.Name.iPhone11Pro,                    platform:Destination.Platform.iOSSimulator,                    os:Destination.OS.iOS13_2_2),                language:Language.ja,                locale:Locale.ja)])}ExportArchive{        $0.isEnabled=false        $0.configure(            projectType:.project("TestApp"),            archivePath:Directory.downloads.appendingPathComponent("TestApp.xcarchive").path,            optionsPlist:.options(.init(                    method:ExportArchive.ExportMethod.development,                    signing:.automatic(.init(teamId:ProcessInfo().environment["teamId"]!)))),            exportDirectory:Directory.downloads.path)}Slack{        $0.post(            message:.init(                token:ProcessInfo().environment["slackBotToken"]!,                channel:"random",                text:"Hello from Puma",                username:"onmyway133"))}}workflow.workingDirectory=Directory.home.appendingPathComponent("XcodeProject/TestApp").pathworkflow.run()

Documentation

Contributing

Puma is in its early development, we need your help.

License

Puma is released under the MIT license. SeeLICENSE for details.

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp