パルカワ2

最近はFlutterをやっています

Bitriseでflutter driveを実行する

プロジェクトを作ってシミュレーターを開いて、flutter driveすればよい

---
format_version: '8'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: flutter
trigger_map:
- push_branch: "*"
  workflow: primary
- pull_request_source_branch: "*"
  workflow: primary
workflows:
  primary:
    steps:
    - activate-ssh-key@4.0.5:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone@4.0.18: {}
    - flutter-installer@0.11.0:
        inputs:
        - is_update: 'false'
    - cache-pull@2.1.4: {}
    - flutter-analyze@0.1.2:
        inputs:
        - project_location: "$BITRISE_FLUTTER_PROJECT_LOCATION"
    - script@1.1.6:
        inputs:
        - content: |-
            #!/usr/bin/env bash
            # fail if any commands fails
            set -e
            # debug log
            set -x

            open -a Simulator
            make test
        title: Run flutter drive
    - deploy-to-bitrise-io@1.9.6: {}
    - cache-push@2.2.3: {}
app:
  envs:
  - opts:
      is_expand: false
    BITRISE_FLUTTER_PROJECT_LOCATION: example
  - opts:
      is_expand: false
    BITRISE_PROJECT_PATH: example/ios/Runner.xcworkspace
  - opts:
      is_expand: false
    BITRISE_SCHEME: Runner
  - opts:
      is_expand: false
    BITRISE_EXPORT_METHOD: ad-hoc