machine:
  xcode:
    version: "7.0"
  environment:
    # Private repo access
    GITHUB_API_KEY: secret
    # SecondCurtain
    UPLOAD_IOS_SNAPSHOT_BUCKET_NAME: eigen-ci
    AWS_ACCESS_KEY_ID: secret
    AWS_SECRET_ACCESS_KEY: secret
    # CocoaPods-Keys
    ArtsyAPIClientSecret: 3a33d2085cbd1176153f99781bbce7c6
    ArtsyAPIClientKey: e750db60ac506978fc70
    ArtsyFacebookAppID: "-"
    ArtsyTwitterKey: "-"
    ArtsyTwitterSecret: "-"
    ArtsyTwitterStagingKey: "-"
    ArtsyTwitterStagingSecret: "-"
    AdjustProductionAppToken: "-"
    SegmentProductionWriteKey: "-"
    SegmentDevWriteKey: "-"

  post:
    - echo "machine github.com login $GITHUB_API_KEY" > ~/.netrc
    - chmod 600 ~/.netrc

dependencies:
  override:
    - bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 --without development distribution
    - bundle exec pod install
  cache_directories:
    - vendor/bundle
    - Pods

test:
  pre:
    - make ci
  override:
    - make test
  post:
    - make deploy_if_beta_branch

machine:
  xcode:
    version: "7.0"
  environment:
    # Private repo access
    GITHUB_API_KEY: secret
    # SecondCurtain
    UPLOAD_IOS_SNAPSHOT_BUCKET_NAME: eigen-ci
    AWS_ACCESS_KEY_ID: secret
    AWS_SECRET_ACCESS_KEY: secret
    # CocoaPods-Keys
    ArtsyAPIClientSecret: 3a33d2085cbd1176153f99781bbce7c6
    ArtsyAPIClientKey: e750db60ac506978fc70
    ArtsyFacebookAppID: "-"
    ArtsyTwitterKey: "-"
    ArtsyTwitterSecret: "-"
    ArtsyTwitterStagingKey: "-"
    ArtsyTwitterStagingSecret: "-"
    AdjustProductionAppToken: "-"
    SegmentProductionWriteKey: "-"
    SegmentDevWriteKey: "-"

  post:
    - echo "machine github.com login $GITHUB_API_KEY" > ~/.netrc
    - chmod 600 ~/.netrc

dependencies:
  override:
    - bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 --without development
    - bundle exec pod install
  cache_directories:
    - vendor/bundle
    - Pods

test:
  pre:
    - make ci
  override:
    - make test
  post:
    - make deploy_if_beta_branch

Include distribution pods in CI
Include distribution pods in CI
