|
| 1 | +# Nodes with values to reuse in the pipeline. |
| 2 | +common_params: |
| 3 | + # Common plugin settings to use with the `plugins` key. |
| 4 | + - &common_plugins |
| 5 | + - automattic/bash-cache#v1.5.0 |
| 6 | + - automattic/git-s3-cache#v1.1.0: |
| 7 | + bucket: "a8c-repo-mirrors" |
| 8 | + repo: "woocommerce/woocommerce-ios/" |
| 9 | + # Common environment values to use with the `env` key. |
| 10 | + - &common_env |
| 11 | + IMAGE_ID: xcode-13 |
| 12 | + |
| 13 | +# This is the default pipeline – it will build and test the app |
| 14 | +steps: |
| 15 | + ################# |
| 16 | + # Build the app |
| 17 | + ################# |
| 18 | + - label: ":pipeline: Build" |
| 19 | + key: "build" |
| 20 | + command: ".buildkite/commands/build-for-testing.sh" |
| 21 | + env: *common_env |
| 22 | + plugins: *common_plugins |
| 23 | + notify: |
| 24 | + - github_commit_status: |
| 25 | + context: "Build" |
| 26 | + |
| 27 | + ################# |
| 28 | + # Create Installable Build |
| 29 | + ################# |
| 30 | + - label: "🛠 Installable Build" |
| 31 | + command: ".buildkite/commands/installable-build.sh" |
| 32 | + env: *common_env |
| 33 | + plugins: *common_plugins |
| 34 | + if: build.pull_request.id != null |
| 35 | + notify: |
| 36 | + - github_commit_status: |
| 37 | + context: "Installable Build" |
| 38 | + |
| 39 | + ################# |
| 40 | + # Run Unit Tests |
| 41 | + ################# |
| 42 | + - label: "🔬 Unit Tests" |
| 43 | + command: ".buildkite/commands/run-unit-tests.sh" |
| 44 | + depends_on: "build" |
| 45 | + env: *common_env |
| 46 | + plugins: *common_plugins |
| 47 | + notify: |
| 48 | + - github_commit_status: |
| 49 | + context: "Unit Tests" |
| 50 | + |
| 51 | + ################# |
| 52 | + # Lint Translations |
| 53 | + ################# |
| 54 | + - label: "🧹 Lint Translations" |
| 55 | + command: "gplint /workdir/WooCommerce/Resources/AppStoreStrings.pot" |
| 56 | + plugins: |
| 57 | + - docker#v3.8.0: |
| 58 | + image: "public.ecr.aws/automattic/glotpress-validator:1.0.0" |
| 59 | + agents: |
| 60 | + queue: "default" |
| 61 | + notify: |
| 62 | + - github_commit_status: |
| 63 | + context: "Lint Translations" |
| 64 | + |
| 65 | + ################# |
| 66 | + # UI Tests |
| 67 | + ################# |
| 68 | + - label: "🔬 UI Tests (iPhone)" |
| 69 | + command: .buildkite/commands/run-ui-tests.sh UITests 'iPhone 11' 15.0 |
| 70 | + depends_on: "build" |
| 71 | + env: *common_env |
| 72 | + plugins: *common_plugins |
| 73 | + artifact_paths: |
| 74 | + - "build/results/" |
| 75 | + notify: |
| 76 | + - github_commit_status: |
| 77 | + context: "UI Tests (iPhone)" |
| 78 | + |
| 79 | + - label: "🔬 UI Tests (iPad)" |
| 80 | + command: .buildkite/commands/run-ui-tests.sh UITests "iPad Air (4th generation)" 15.0 |
| 81 | + depends_on: "build" |
| 82 | + env: *common_env |
| 83 | + plugins: *common_plugins |
| 84 | + artifact_paths: |
| 85 | + - "build/results/" |
| 86 | + notify: |
| 87 | + - github_commit_status: |
| 88 | + context: "UI Tests (iPad)" |
0 commit comments