Giter Club home page Giter Club logo

trigger-tasks's Introduction

Trigger Tasks

A set of rake tasks for working with Trigger.io projects.

Installation

Add this line to your application's Gemfile (NOT ON ANY GEM REPO YET):

gem 'trigger-tasks', :git => '[email protected]:MarkBorcherding/trigger-tasks.git'

And then execute:

$ bundle

Add the following to your Rakefile:

require 'trigger-tasks'

TriggerTasks.new

You can configure the tasks if you wish:

require 'trigger-tasks'

TriggerTasks::TaskLib.new do |config|
  config.namespace = 'foo'
end

If you want to use the testflight task you will need to add some config to the tasks:

require 'trigger-tasks'

TriggerTasks::TaskLib.new do |config|
  config.test_flight_team_token = '<< your team token >>'
  config.test_flight_distribution_lists = ['your', 'distribution', 'lists']
end

Also, you will need to create an environment variable TEST_FLIGHT_API_TOKEN with your api token. Eventually it would be nice to have a .test_flight_api_key file that is added to the .gitignore to avoid mucking with the environment.

Config

There are several options that can be configured in the setup block.

TriggerTasks::TaskLib.new do |config|
  config.verbose                # Extra console output default = true
  config.forge_path             # The path to the forge executable. default = 'forge'
  config.namespace              # The namespace of the rake tasks. default = 'forge'
  config.default_platform       # The default platform when running 'rake device'. default = 'ios'
  config.build_task             # The rake task to invoke before forge builds. (Optional)

  config.test_flight_api_url    # The url of TestFlight. default = "https://testflightapp.com/api/builds.json"
  config.test_flight_api_token  # Your TestFlight API token. default = ENV['TEST_FLIGHT_API_TOKEN']
  config.test_flight_team_token # Your TestFlight Team Token.
  config.test_flight_distribution_lists # An array of distribution lists in TestFlight.
end

Usage

Run rake -T to see your new tasks.

rake device                          # Open the app in the device
rake forge                           # Open the app in the iOS simulator
rake forge:ios                       # Open the app in the iOS simulator
rake forge:ios:build                 # Build the app for iOS
rake forge:ios:device                # Run the app on the device
rake forge:ios:package               # Package the app for iOS deveployment in the simulator or device
rake forge:ios:run                   # Run the app in the location specified in the local_config.json
rake forge:ios:run:device            # Run the app in the simulator
rake forge:ios:run:simulator         # Run the device on the device
rake forge:ios:run:simulator:ipad    # Force the app to run in the iPad simulator
rake forge:ios:run:simulator:iphone  # Force the app to run in the iPhone simulator
rake simlator                        # Open the app in the simulator
rake testflight                      # Deploy to TestFlight

Disclaimer

This is still very rough and may not work in all situations.

TODO

  • Allow passing TestFlight parameters on the command line to hook it entirely into the automated build process
  • Get other platforms' commands. (e.g. Android, web, Windows)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

trigger-tasks's People

Contributors

markborcherding avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

billgloff

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.