machine:
  node:
    version: 6.3.1
  environment:
    PWD: "~/$CIRCLE_PROJECT_REPONAME/extension"

dependencies:
  cache_directories:
    - node_modules
  override:
    - npm config set spin=false
    - npm config set progress=false
    - npm install

test:
  override:
    - npm run tsc
    - npm run browserify
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/bin
    - cp manifest.json $CIRCLE_TEST_REPORTS
    - cp bin/main.js $CIRCLE_TEST_REPORTS/bin
    - (cd $CIRCLE_TEST_REPORTS; zip build-$CIRCLE_BUILD_NUM.zip manifest.json bin/main.js)

machine:
  node:
    version: 6.3.1

dependencies:
  cache_directories:
    - extension/node_modules
  override:
    - npm config set spin=false
    - npm config set progress=false
    - (cd extension; npm install)

test:
  override:
    - (cd extension; npm run tsc)
    - (cd extension; npm run browserify)
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/bin
    - cp extension/manifest.json $CIRCLE_TEST_REPORTS
    - cp extension/bin/main.js $CIRCLE_TEST_REPORTS/bin
    - (cd $CIRCLE_TEST_REPORTS; zip build-$CIRCLE_BUILD_NUM.zip manifest.json bin/main.js)

Revert "Try to change PWD"
Revert "Try to change PWD"

This reverts commit 7d5553986e47c718813525e0254b4b4ad8e5dafc.
