machine:
  environment:
    TERM: 'dumb'
    ADB_INSTALL_TIMEOUT: 10
    PATH: "/home/ubuntu/buck/bin:$PATH"
  java:
    version: 'oraclejdk8'

dependencies:
  override:
    # Buck and Android
    - if [[ ! -e /home/ubuntu/buck ]]; then git clone https://github.com/facebook/buck.git /home/ubuntu/buck; fi
    - cd /home/ubuntu/buck && ant
    - buck --version
    - source scripts/circle-ci-android-setup.sh && getAndroidSDK
    - buck fetch litho-core/src/...
    - buck fetch sample/...

  cached_directories:
    - "/home/ubuntu/buck"

test:
  override:
    # Build the sample first
    - buck build sample
    # Run the tests
    - buck test litho-it/src/test/... --config build.threads=1

experimental:
  notify:
    branches:
      only:
        - master

machine:
  environment:
    TERM: 'dumb'
    ADB_INSTALL_TIMEOUT: 10
    PATH: "/home/ubuntu/buck/bin:$PATH"
  java:
    version: 'oraclejdk8'

dependencies:
  override:
    # Buck and Android
    - if [[ ! -e /home/ubuntu/buck ]]; then git clone https://github.com/facebook/buck.git /home/ubuntu/buck; fi
    - cd /home/ubuntu/buck && ant
    - buck --version
    - source scripts/circle-ci-android-setup.sh && getAndroidSDK
    - buck fetch :components
    - buck fetch litho-it/...
    - buck fetch sample/...

  cached_directories:
    - "/home/ubuntu/buck"

test:
  override:
    # Build the sample first
    - buck build sample
    # Run the tests
    - buck test litho-it/src/test/... --config build.threads=1

experimental:
  notify:
    branches:
      only:
        - master

Update CircleCI script for new targets
Update CircleCI script for new targets

Summary: We need to fetch from some more places now.

Reviewed By: emilsjolander

Differential Revision: D4851425

fbshipit-source-id: 16903bc9c31751ce363dee2fdeedd4533347522a
