machine:
  environment:
    XCODE_SCHEME: test
    XCODE_WORKSPACE: test
    XCODE_PROJECT: test

  xcode:
    version: 7.3

  post:
    - osascript -e 'tell application "System Events" to keystroke "x"' # clear screen saver

general:
  artifacts:
    - out/Atom.zip

dependencies:
  pre:
    - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash
    - nvm install 4.4.7
    - nvm use 4.4.7
    - npm install -g npm
    - script/fingerprint-clean

  override:
    - script/bootstrap

  post:
    - script/fingerprint-write

  cache_directories:
    - apm/node_modules
    - build/node_modules
    - node_modules
    - ~/.atom/compile-cache

test:
  override:
    - caffeinate -s script/grunt ci # Run with caffeinate to prevent screen saver

  post:
    - zip -r out/Atom.zip out/Atom.app

machine:
  environment:
    XCODE_SCHEME: test
    XCODE_WORKSPACE: test
    XCODE_PROJECT: test

  xcode:
    version: 7.3

  post:
    - osascript -e 'tell application "System Events" to keystroke "x"' # clear screen saver

general:
  artifacts:
    - out/Atom.zip

dependencies:
  pre:
    - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash
    - nvm install 4.4.7
    - nvm use 4.4.7
    - npm install -g npm
    - script/fingerprint-clean

  override:
    - script/bootstrap

  post:
    - script/fingerprint-write

  cache_directories:
    - apm/node_modules
    - build/node_modules
    - node_modules
    - ~/.atom/compile-cache

test:
  override:
    - caffeinate -s script/grunt ci # Run with caffeinate to prevent screen saver

  post:
    - zip -r out/Atom.zip out/Atom.app

experimental:
  notify:
    branches:
      only:
        - master

Send notifications to Slack when a CircleCI build of master completes
Send notifications to Slack when a CircleCI build of master completes
