Skip to content

Instantly share code, notes, and snippets.

@shimoju
Created September 27, 2016 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shimoju/5e343260fc8f0cc512ae7641fb9bd799 to your computer and use it in GitHub Desktop.
Save shimoju/5e343260fc8f0cc512ae7641fb9bd799 to your computer and use it in GitHub Desktop.
Bitrise CI設定
---
format_version: 1.2.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
primary:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- cache-pull: {}
- carthage:
inputs:
- carthage_command: bootstrap
- cache-push:
inputs:
- cache_paths: |-
$BITRISE_CACHE_DIR
./Carthage -> ./Carthage/Cachefile
- certificate-and-profile-installer: {}
- xcode-test: {}
- script:
title: Print Xcode test result
is_always_run: true
inputs:
- content: |-
#!/bin/bash
set -e
set -x
tail -n 30 $BITRISE_XCODE_RAW_TEST_RESULT_TEXT_PATH
- slack:
inputs:
- webhook_url: [WebhookのURLをここに書く]
- channel: "#6th_engineers"
- from_username: "[$BITRISE_APP_TITLE] Bitrise CI - OK"
- from_username_on_error: "[$BITRISE_APP_TITLE] Bitrise CI - ERROR"
- message: |-
:ok_woman: Build #$BITRISE_BUILD_NUMBER on $BITRISE_GIT_BRANCH by $GIT_CLONE_COMMIT_AUTHOR_NAME *passed* :tada:
$BITRISE_BUILD_URL
- message_on_error: |-
:no_good: Build #$BITRISE_BUILD_NUMBER on $BITRISE_GIT_BRANCH by $GIT_CLONE_COMMIT_AUTHOR_NAME *failed* :boom:
$BITRISE_BUILD_URL
- emoji: ":curry:"
- emoji_on_error: ":innocent:"
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: Turmeric.xcodeproj
- opts:
is_expand: false
BITRISE_SCHEME: Turmeric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment