machine:
  xcode:
    version: "8.0"
  environment:
    LANG: en_US.UTF-8

dependencies:
  pre:
    - curl -sS https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash
  override:
    - brew update ; brew update # Due to a problem with Homebrew, see: https://github.com/Homebrew/brew/issues/991
    - brew install swiftlint
    - bundle install
    - cd Demo ; bundle exec pod repo update
    - cd Demo ; bundle exec pod install --verbose # Verbose to keep CI alive during long Specs repo setups.

test:
  pre:
  override: 
  - rake test && rake test:carthage
  post: 
    - bundle exec danger
    - bash <(curl -s https://codecov.io/bash)

machine:
  xcode:
    version: "8.0"
  environment:
    LANG: en_US.UTF-8

dependencies:
  pre:
    - curl -sS https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash
  override:
    - brew update ; brew update # Due to a problem with Homebrew, see: https://github.com/Homebrew/brew/issues/991
    - brew install swiftlint
    - bundle install
    - cd Demo ; bundle exec pod repo update
    - cd Demo ; bundle exec pod install --verbose # Verbose to keep CI alive during long Specs repo setups.

test:
  pre:
  override:
  - rake test && rake test:carthage
  post:
    - bundle exec danger
    - bash <(curl -s https://codecov.io/bash) -J Moya

Add codecov flag to only include Moya coverage. This is to prevent file name collisions with Alamofire.
Add codecov flag to only include Moya coverage. This is to prevent file name collisions with Alamofire.
