machine:
  node:
    version: 0.12.0
  environment:
    PEBBLE_TOOL: 4.3
    PEBBLE_SDK: 3.14
  post:
    - npm install -g npm@3.x.x

dependencies:
  pre:
    - . test/ensure-pebble-test-environment.sh
  override:
    - cd test/js; npm install
  cache_directories:
    - ~/.pebble-sdk
    - ~/pebble-dev
    - ~/imagemagick

test:
  pre:
    - mkdir -p $CIRCLE_TEST_REPORTS/js-unit-tests
    - mkdir -p $CIRCLE_TEST_REPORTS/screenshots
  override:
    - cd test/js; node_modules/.bin/mocha test*.js --reporter mocha-jenkins-reporter:
        environment:
          JUNIT_REPORT_PATH: $CIRCLE_TEST_REPORTS/js-unit-tests/junit.xml
          JUNIT_STACK: 1
    - . ~/pebble-dev/path.sh; pebble build
    - . ~/pebble-dev/path.sh; . test/do_screenshots.sh --junitxml=$CIRCLE_TEST_REPORTS/screenshots/junit.xml
  post:
    - cp -r test/output $CIRCLE_ARTIFACTS/output

machine:
  python:
    version: 2.7.12
  node:
    version: 0.12.0
  environment:
    PEBBLE_TOOL: 4.3
    PEBBLE_SDK: 3.14
  post:
    - npm install -g npm@3.x.x

dependencies:
  pre:
    - . test/ensure-pebble-test-environment.sh
  override:
    - cd test/js; npm install
  cache_directories:
    - ~/.pebble-sdk
    - ~/pebble-dev
    - ~/imagemagick

test:
  pre:
    - mkdir -p $CIRCLE_TEST_REPORTS/js-unit-tests
    - mkdir -p $CIRCLE_TEST_REPORTS/screenshots
  override:
    - cd test/js; node_modules/.bin/mocha test*.js --reporter mocha-jenkins-reporter:
        environment:
          JUNIT_REPORT_PATH: $CIRCLE_TEST_REPORTS/js-unit-tests/junit.xml
          JUNIT_STACK: 1
    - . ~/pebble-dev/path.sh; pebble build
    - . ~/pebble-dev/path.sh; . test/do_screenshots.sh --junitxml=$CIRCLE_TEST_REPORTS/screenshots/junit.xml
  post:
    - cp -r test/output $CIRCLE_ARTIFACTS/output

Fix pip version to unbreak Circle builds
Fix pip version to unbreak Circle builds
