Skip to content

Instantly share code, notes, and snippets.

---
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- BITRISE_PROJECT_PATH: XXXX.xcworkspace
opts:
is_expand: false
- BITRISE_SCHEME: XXXX
opts:
---
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- BITRISE_PROJECT_PATH: XXXX.xcworkspace
opts:
is_expand: false
- BITRISE_SCHEME: XXXX
opts:
---
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- BITRISE_PROJECT_PATH: XXXX.xcworkspace
opts:
is_expand: false
- BITRISE_SCHEME: XXXX
opts:
---
format_version: '6'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- push_branch: release/*
workflow: upload_to_appstoreconnect
workflows:
upload_to_appstoreconnect:
steps:
---
format_version: '6'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- tag: "*"
workflow: release_note
workflows:
release_note:
steps:
---
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- BITRISE_PROJECT_PATH: XXXX.xcworkspace
opts:
is_expand: false
- BITRISE_SCHEME: XXXX.xcworkspace
opts:
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem 'danger'
gem 'xcpretty-json-formatter'
gem 'danger-xcode_summary'
gem 'danger-swiftlint'
gem 'danger-lgtm'
# Test
# ソースコードに変更があるがテストコードが変更されていない場合messageを出す
is_source_changed = !git.modified_files.grep(/^Sources\/.*?\.(h|m|swift)$/).empty? || !git.added_files.grep(/^Sources\/.*?\.(h|m|swift)$/).empty?
is_test_changed = !git.modified_files.grep(/Tests\//).empty?
if is_source_changed && !is_test_changed
message('Tests did not changed🤔')
end
# タイトルに[WIP]が含まれていたらwarningを出す
---
format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- BITRISE_PROJECT_PATH: XXXX.xcworkspace
opts:
is_expand: false
- BITRISE_SCHEME: XXXXXX
opts: