<commit_before>sudo: false

language: node_js
node_js:
  - iojs

git:
  # contributors task: need all commits until we cache contributions somewhere else https://github.com/putaindecode/putaindecode.fr/issues/218
  depth: 100000

notifications:
  irc:
    channels: "irc.freenode.org#putaindecode"
    on_success: always
    on_failure: always
    use_notice: true
    skip_join: true
  webhooks:
    - https://webhooks.gitter.im/e/f9058b60ad04e03a490e

#install:
#  - npm install --loglevel info

before_script:
  # for headless browsers
  # http://docs.travis-ci.com/user/gui-and-headless-browsers/
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

  # gh-pages: because of how gulp-gh-pages works (with a clone), --global is required
  - git config --global user.name "Travis-CI"
  - git config --global user.email "<EMAIL>"

script:
  - npm test
  # deploy real master only
  - if [ $TRAVIS_PULL_REQUEST = "false" ] && [ $TRAVIS_BRANCH = "master" ]; then npm run _deploy; fi

env:
  global:
    # GH_TOKEN<commit_msg>Set production flag for travis<commit_after>sudo: false

language: node_js
node_js:
  - iojs

git:
  # contributors task: need all commits until we cache contributions somewhere else https://github.com/putaindecode/putaindecode.fr/issues/218
  depth: 100000

notifications:
  irc:
    channels: "irc.freenode.org#putaindecode"
    on_success: always
    on_failure: always
    use_notice: true
    skip_join: true
  webhooks:
    - https://webhooks.gitter.im/e/f9058b60<PASSWORD>03a490e

#install:
#  - npm install --loglevel info

before_script:
  # for headless browsers
  # http://docs.travis-ci.com/user/gui-and-headless-browsers/
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

  # gh-pages: because of how gulp-gh-pages works (with a clone), --global is required
  - git config --global user.name "Travis-CI"
  - git config --global user.email "<EMAIL>"

script:
  - npm test
  # deploy real master only
  - if [ $TRAVIS_PULL_REQUEST = "false" ] && [ $TRAVIS_BRANCH = "master" ]; then npm run _deploy; fi

env:
  global:
    - __PROD__: 1
    # GH_TOKEN
{'fraction_non_alphanumeric': 0.11619047619047619, 'fraction_numerical': 0.023333333333333334, 'mean_word_length': 3.261663286004057, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2580015', 'n_tokens_mistral': 806, 'n_tokens_neox': 759, 'n_words': 191}