<commit_before>sudo: required
dist: trusty

services:
  - docker

language: node_js

os:
  - linux
  - osx

node_js:
  - '4'
  - '5'

env:
  global:
    - secure: "<KEY> # DOCKER_EMAIL
    - secure: "<KEY> # DOCKER_USER
    - secure: "<KEY> # DOCKER_PASS
    - secure: "<KEY> # GITHUB_TOKEN
    - GOPATH=$HOME/gopath
    - PATH=$HOME/gopath/bin:$PATH

addons:
  apt:
    packages:
      - icnsutils
      - graphicsmagick
      - gcc-multilib
      - g++-multilib

before_install:
  - git --version
  - git config --global user.name "Travis CI"
  - git config --global user.email "<EMAIL>"
  - go version
  - go env
  - go get github.com/cheton/github-release
  - github-release --version
  #
  # https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build#os-x
  #
  # Use brew to install required packages.
  #
  # To build app in distributable format for Windows on OS X:
  # $ brew install Caskroom/cask/xquartz wine mono
  #
  # To build app in distributable format for Linux on OS X:
  # $ brew install ruby gnu-tar libicns graphicsmagick
  #
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  - gem install fpm
  # npm v3
  - npm install -g npm

script:
  - npm run build

after_success:
  - |
    if [[ "$TRAVIS_NODE_VERSION" == "4" && "$TRAVIS_OS_NAME" == "osx" ]]; then
      # cnc-darwin-x64
      npm run electron-builder:darwin-x64;
      pushd output;
      zip -q -r cnc-darwin-x64.zip cnc-darwin-x64/;
      popd;
      scripts/github-release.sh \
        --user="cheton" \
        --repo="cnc-builds" \
        --tag="cnc-${TRAVIS_BRANCH}-latest" \
        --name="cnc-darwin-x64-latest.zip" \
        --file="output/cnc-darwin-x64.zip";
    fi
  - |
    if [[ "$TRAVIS_NODE_VERSION" == "4" && "$TRAVIS_OS_NAME" == "linux" ]]; then
      # cnc-linux-ia32
      npm run electron-builder:linux-ia32;
      pushd output;
      zip -q -r cnc-linux-ia32.zip cnc-linux-ia32/;
      popd;
      scripts/github-release.sh \
        --user="cheton" \
        --repo="cnc-builds" \
        --tag="cnc-${TRAVIS_BRANCH}-latest" \
        --name="cnc-linux-ia32-latest.zip" \
        --file="output/cnc-linux-ia32.zip";
      # cnc-linux-x64
      npm run electron-builder:linux-x64;
      pushd output;
      zip -q -r cnc-linux-x64.zip cnc-linux-x64/;
      popd;
      scripts/github-release.sh \
        --user="cheton" \
        --repo="cnc-builds" \
        --tag="cnc-${TRAVIS_BRANCH}-latest" \
        --name="cnc-linux-x64-latest.zip" \
        --file="output/cnc-linux-x64.zip";
    fi
  - |
    if [[ "$TRAVIS_NODE_VERSION" == "5" && "$TRAVIS_OS_NAME" == "linux" ]]; then
      scripts/travis-docker-build.sh;
    fi

before_deploy:
  - export DEPLOY_FILE=$(ls output/cnc-*.zip)
  - echo "Deploying $DEPLOY_FILE to GitHub releases"
deploy:
  provider: releases
  api_key:
    secure: "<KEY>
  file: "${DEPLOY_FILE}"
  overwrite: true
  skip_cleanup: true<commit_msg>Update .travis.yml<commit_after>sudo: required
dist: trusty

services:
  - docker

language: node_js

os:
  - linux
  - osx

node_js:
  - '4'
  - '5'

env:
  global:
    - secure: "<KEY> # DOCKER_EMAIL
    - secure: "<KEY> # DOCKER_USER
    - secure: "<KEY> # DOCKER_PASS
    - secure: "<KEY> # GITHUB_TOKEN
    - GOPATH=$HOME/gopath
    - PATH=$HOME/gopath/bin:$PATH

addons:
  apt:
    packages:
      - icnsutils
      - graphicsmagick
      - gcc-multilib
      - g++-multilib

before_install:
  - git --version
  - git config --global user.name "<NAME>"
  - git config --global user.email "<EMAIL>"
  - go version
  - go env
  - go get github.com/cheton/github-release
  - github-release --version
  #
  # https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build#os-x
  #
  # Use brew to install required packages.
  #
  # To build app in distributable format for Windows on OS X:
  # $ brew install Caskroom/cask/xquartz wine mono
  #
  # To build app in distributable format for Linux on OS X:
  # $ brew install ruby gnu-tar libicns graphicsmagick
  #
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  - gem install fpm
  # npm v3
  - npm install -g npm

script:
  - npm run build

after_success:
  - |
    # osx
    if [[ "$TRAVIS_NODE_VERSION" == "4" && "$TRAVIS_OS_NAME" == "osx" ]]; then
      # cnc-darwin-x64
      npm run electron-builder:darwin-x64;
      pushd output;
      zip -q -r cnc-darwin-x64.zip cnc-darwin-x64/;
      popd;
      if [[ -z "TRAVIS_TAG" ]]; then
        scripts/github-release.sh \
          --user="cheton" \
          --repo="cnc-builds" \
          --tag="cnc-${TRAVIS_BRANCH}-latest" \
          --name="cnc-darwin-x64-latest.zip" \
          --file="output/cnc-darwin-x64.zip";
      fi
    fi
    # linux
    if [[ "$TRAVIS_NODE_VERSION" == "4" && "$TRAVIS_OS_NAME" == "linux" ]]; then
      # cnc-linux-ia32
      npm run electron-builder:linux-ia32;
      pushd output;
      zip -q -r cnc-linux-ia32.zip cnc-linux-ia32/;
      popd;
      if [[ -z "TRAVIS_TAG" ]]; then
        scripts/github-release.sh \
          --user="cheton" \
          --repo="cnc-builds" \
          --tag="cnc-${TRAVIS_BRANCH}-latest" \
          --name="cnc-linux-ia32-latest.zip" \
          --file="output/cnc-linux-ia32.zip";
      fi
      # cnc-linux-x64
      npm run electron-builder:linux-x64;
      pushd output;
      zip -q -r cnc-linux-x64.zip cnc-linux-x64/;
      popd;
      if [[ -z "TRAVIS_TAG" ]]; then
        scripts/github-release.sh \
          --user="cheton" \
          --repo="cnc-builds" \
          --tag="cnc-${TRAVIS_BRANCH}-latest" \
          --name="cnc-linux-x64-latest.zip" \
          --file="output/cnc-linux-x64.zip";
      fi
    fi
    # docker image
    if [[ "$TRAVIS_NODE_VERSION" == "5" && "$TRAVIS_OS_NAME" == "linux" ]]; then
      scripts/travis-docker-build.sh;
    fi

before_deploy:
  - export DEPLOY_FILE=$(ls output/cnc-*.zip)
  - echo "Deploying $DEPLOY_FILE to GitHub releases"
deploy:
  provider: releases
  api_key:
    secure: "<KEY>
  file: "${DEPLOY_FILE}"
  overwrite: true
  skip_cleanup: true
{'fraction_non_alphanumeric': 0.15365489806066635, 'fraction_numerical': 0.0139234211834908, 'mean_word_length': 2.136174636174636, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 2, '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': '6903576', 'n_tokens_mistral': 2391, 'n_tokens_neox': 2300, 'n_words': 456}