Class: Fastlane::Actions::SetupTravisAction

Inherits:
Fastlane::Action show all
Defined in:
fastlane/lib/fastlane/actions/setup_travis.rb

Constant Summary

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, deprecated_notes, lane_context, method_missing, other_action, output, return_type, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text

Class Method Details

.authorsObject



38
39
40
# File 'fastlane/lib/fastlane/actions/setup_travis.rb', line 38

def self.authors
  ["KrauseFx"]
end

.available_optionsObject



28
29
30
31
32
33
34
35
36
# File 'fastlane/lib/fastlane/actions/setup_travis.rb', line 28

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :force,
                                 env_name: "FL_SETUP_TRAVIS_FORCE",
                                 description: "Force setup, even if not executed by travis",
                                 is_string: false,
                                 default_value: false)
  ]
end

.categoryObject



52
53
54
# File 'fastlane/lib/fastlane/actions/setup_travis.rb', line 52

def self.category
  :misc
end

.descriptionObject



12
13
14
# File 'fastlane/lib/fastlane/actions/setup_travis.rb', line 12

def self.description
  "Setup the keychain and match to work with Travis CI"
end

.detailsObject



16
17
18
19
20
21
22
23
24
25
26
# File 'fastlane/lib/fastlane/actions/setup_travis.rb', line 16

def self.details
  list = <<-LIST.markdown_list(true)
    Creates a new temporary keychain for use with match
    Switches match to `readonly` mode to not create new profiles/cert on CI
  LIST

  [
    list,
    "This action helps with Travis integration. Add this to the top of your Fastfile if you use Travis."
  ].join("\n")
end

.example_codeObject



46
47
48
49
50
# File 'fastlane/lib/fastlane/actions/setup_travis.rb', line 46

def self.example_code
  [
    'setup_travis'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:



42
43
44
# File 'fastlane/lib/fastlane/actions/setup_travis.rb', line 42

def self.is_supported?(platform)
  [:ios, :mac].include?(platform)
end

.run(params) ⇒ Object



4
5
6
# File 'fastlane/lib/fastlane/actions/setup_travis.rb', line 4

def self.run(params)
  other_action.setup_ci(provider: "travis", force: params[:force])
end