language: swift
osx_image: xcode11.2

env:
  global:
  - 'COMPANY="Brit Solucoes Integradas de Tecnologia Ltda."'
  - COMPANY_ID="7PXVC8PJ97"
  - APP_NAME="MacMagazine"
  - 'DEVELOPER_NAME="iPhone Distribution: $COMPANY ($COMPANY_ID)"'
  - PROFILE_NAME="MacMagazine"
  - 'DESTINATION="platform=iOS Simulator,OS=13.2.2,name=iPhone 11 Pro"'

jobs:
  include:
    - stage: test
      script:
      - xcodebuild test -project "$APP_NAME".xcodeproj -scheme "$APP_NAME" -destination "$DESTINATION"
    - stage: deploy
      script:
      - xcodebuild -project "$APP_NAME".xcodeproj -scheme "$APP_NAME"

stages:
  - name: test
    if: type = pull_request
  - name: deploy
    if: type = push AND branch = release/4.0

language: swift
osx_image: xcode11.2

env:
  global:
  - 'COMPANY="Brit Solucoes Integradas de Tecnologia Ltda."'
  - COMPANY_ID="7PXVC8PJ97"
  - APP_NAME="MacMagazine"
  - 'DEVELOPER_NAME="iPhone Distribution: $COMPANY ($COMPANY_ID)"'
  - PROFILE_NAME="MacMagazine"
  - 'DESTINATION="platform=iOS Simulator,OS=13.2.2,name=iPhone 11 Pro"'

jobs:
  include:
    - stage: test
      script:
      - xcodebuild clean analyze -project "$APP_NAME".xcodeproj -scheme "$APP_NAME" -destination "$DESTINATION"
      - xcodebuild clean test -project "$APP_NAME".xcodeproj -scheme "$APP_NAME" -destination "$DESTINATION"
    - stage: deploy
      script:
      - xcodebuild -project "$APP_NAME".xcodeproj -scheme "$APP_NAME" -allowProvisioningUpdates

stages:
  - name: test
    if: type = pull_request
  - name: deploy
    if: type = push AND branch = release/4.0

Increase script coverage while testing
Increase script coverage while testing
