<commit_before>services:
    - docker

language: go

go:
  -  "1.x"

addons:
  chrome: stable

git:
  depth: 300

matrix:
  include:
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS="./api"
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS="./client"
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS="./drivers/docker"
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS="./drivers/exec"
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS="./nomad"
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS_EXCLUDE="./api|./client|./drivers/docker|./drivers/exec|./nomad"
    - os: linux
      dist: xenial
      sudo: required
      env: ENABLE_RACE=1
    - os: linux
      dist: xenial
      sudo: false
      env: RUN_WEBSITE_TESTS=1 SKIP_NOMAD_TESTS=1
    - os: linux
      dist: xenial
      sudo: false
      env: RUN_UI_TESTS=1 SKIP_NOMAD_TESTS=1
    - os: linux
      dist: xenial
      sudo: false
      env: RUN_STATIC_CHECKS=1 SKIP_NOMAD_TESTS=1
    - os: osx
      osx_image: xcode9.1
    - os: linux
      dist: xenial
      sudo: required
      env: RUN_E2E_TESTS=1 SKIP_NOMAD_TESTS=1
  allow_failures:
    # Allow osx to fail as its flaky
    - os: osx
    #FIXME Allow race enabled builds to fail for now.
    - env: ENABLE_RACE=1
  fast_finish: true

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ -z "$SKIP_NOMAD_TESTS" ]]; then sudo -E bash ./scripts/travis-mac-priv.sh ; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ -z "$SKIP_NOMAD_TESTS" ]]; then sudo -E bash ./scripts/travis-linux.sh ; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$RUN_STATIC_CHECKS" ]]; then sudo -E bash ./scripts/vagrant-linux-priv-protoc.sh; fi
  - if [[ "$RUN_UI_TESTS" ]]; then curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2 ; fi
  - if [[ "$RUN_UI_TESTS" ]]; then export PATH="$HOME/.yarn/bin:$PATH" ; fi

install:
  - if [[ -z "$SKIP_NOMAD_TESTS" ]] || [[ "$RUN_STATIC_CHECKS" ]]; then make deps; fi
  - if [[ "$RUN_STATIC_CHECKS" ]]; then make lint-deps ; fi
  - if [[ "$RUN_UI_TESTS" ]]; then . $HOME/.nvm/nvm.sh && cd ui && nvm use && cd .. ; fi<commit_msg>Force Travis to use node 10<commit_after>services:
    - docker

language: go

go:
  -  "1.x"

addons:
  chrome: stable

git:
  depth: 300

matrix:
  include:
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS="./api"
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS="./client"
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS="./drivers/docker"
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS="./drivers/exec"
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS="./nomad"
    - os: linux
      dist: xenial
      sudo: required
      env: GOTEST_PKGS_EXCLUDE="./api|./client|./drivers/docker|./drivers/exec|./nomad"
    - os: linux
      dist: xenial
      sudo: required
      env: ENABLE_RACE=1
    - os: linux
      dist: xenial
      sudo: false
      env: RUN_WEBSITE_TESTS=1 SKIP_NOMAD_TESTS=1
    - os: linux
      dist: xenial
      sudo: false
      env: RUN_UI_TESTS=1 SKIP_NOMAD_TESTS=1
    - os: linux
      dist: xenial
      sudo: false
      env: RUN_STATIC_CHECKS=1 SKIP_NOMAD_TESTS=1
    - os: osx
      osx_image: xcode9.1
    - os: linux
      dist: xenial
      sudo: required
      env: RUN_E2E_TESTS=1 SKIP_NOMAD_TESTS=1
  allow_failures:
    # Allow osx to fail as its flaky
    - os: osx
    #FIXME Allow race enabled builds to fail for now.
    - env: ENABLE_RACE=1
  fast_finish: true

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ -z "$SKIP_NOMAD_TESTS" ]]; then sudo -E bash ./scripts/travis-mac-priv.sh ; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ -z "$SKIP_NOMAD_TESTS" ]]; then sudo -E bash ./scripts/travis-linux.sh ; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$RUN_STATIC_CHECKS" ]]; then sudo -E bash ./scripts/vagrant-linux-priv-protoc.sh; fi
  - if [[ "$RUN_UI_TESTS" ]]; then curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2 ; fi
  - if [[ "$RUN_UI_TESTS" ]]; then export PATH="$HOME/.yarn/bin:$PATH" ; fi
  - echo "Travis Node Version" && node -v

install:
  - if [[ -z "$SKIP_NOMAD_TESTS" ]] || [[ "$RUN_STATIC_CHECKS" ]]; then make deps; fi
  - if [[ "$RUN_STATIC_CHECKS" ]]; then make lint-deps ; fi
  - if [[ "$RUN_UI_TESTS" ]]; then . $HOME/.nvm/nvm.sh && cd ui && nvm install && nvm use && cd .. ; fi
{'fraction_non_alphanumeric': 0.14702702702702702, 'fraction_numerical': 0.009513513513513514, 'mean_word_length': 2.3208901651112708, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5026299', 'n_tokens_mistral': 1945, 'n_tokens_neox': 1810, 'n_words': 430}