<commit_before>machine:
  environment:
    XCODE_SCHEME: test
    XCODE_WORKSPACE: test
    XCODE_PROJECT: test

  xcode:
    version: 7.3

general:
  artifacts:
    - out/atom-mac.zip
    - out/atom-mac-symbols.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

  override:
    - script/bootstrap
    - build/build.js

  post:
    - cd out/Atom-darwin-x64 && zip -r ../atom-mac.zip ./Atom.app && cd -
    - cd out && zip -r ./atom-mac-symbols.zip ./symbols && cd -

  cache_directories:
    - cache
    - apm/node_modules
    - build/node_modules
    - node_modules

test:
  override:
    - build/test.js
<commit_msg>Download and install OS X signing cert on CircleCI<commit_after>machine:
  environment:
    XCODE_SCHEME: test
    XCODE_WORKSPACE: test
    XCODE_PROJECT: test

  xcode:
    version: 7.3

  post:
    - |- # this weird literal syntax allows a : on the next line
      curl --header 'Accept: application/vnd.github.v3.raw' --output /tmp/mac.p12 $MAC_CODE_SIGNING_CERT_DOWNLOAD_URL
    - security unlock-keychain -p circle circle.keychain
    - security import /tmp/mac.p12 -P $MAC_CODE_SIGNING_CERT_PASSWORD -k circle.keychain -T /usr/bin/codesign
    - security find-identity -p codesigning

general:
  artifacts:
    - out/atom-mac.zip
    - out/atom-mac-symbols.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

  override:
    - script/bootstrap
    - build/build.js

  post:
    - cd out/Atom-darwin-x64 && zip -r ../atom-mac.zip ./Atom.app && cd -
    - cd out && zip -r ./atom-mac-symbols.zip ./symbols && cd -

  cache_directories:
    - cache
    - apm/node_modules
    - build/node_modules
    - node_modules

test:
  override:
    - build/test.js

{'fraction_non_alphanumeric': 0.1223021582733813, 'fraction_numerical': 0.01695786228160329, 'mean_word_length': 2.2235099337748343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4753191', 'n_tokens_mistral': 753, 'n_tokens_neox': 722, 'n_words': 158}