<commit_before>language: csharp
sudo: required
dist: trusty
env:
  global:
  - secure: <KEY>
  - secure: <KEY>
  - secure: <KEY>
  - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
  - DOTNET_CLI_TELEMETRY_OPTOUT=true
mono: latest
os:
- linux
- osx
osx_image: xcode9.2
script:
- git fetch --unshallow
- git fetch origin '+refs/heads/*:refs/heads/*'
- git branch -r
- chmod 755 ./build.sh
- "./build.sh --configuration Release --verbosity Verbose --target All --publish-all --archive"
addons:
  apt:
    packages:
    - gettext
    - libcurl4-openssl-dev
    - libicu-dev
    - libssl-dev
    - libunwind8
    - zlib1g
    - curl
    - python3
    - openssl
install:
- |
  if [ "$TRAVIS_OS_NAME" == "linux" ]; then
    # On Linux, we build libuv from source
    sudo apt-get install make automake libtool
    curl -sSL https://github.com/libuv/libuv/archive/v1.14.0.tar.gz | sudo tar zxf - -C /usr/local/src
    pushd /usr/local/src/libuv-1.14.0
    sudo sh autogen.sh
    sudo ./configure
    sudo make
    sudo make install
    popd
    sudo rm -rf /usr/local/src/libuv-1.14.0
    sudo ldconfig
  elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
    # On OSX, we install libuv via Homebrew
    brew install libuv
  fi
- export PATH="$PWD/.dotnet:$PATH"
after_success: |
  if [[ "$TRAVIS_OS_NAME" == "linux" && $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then
    AZ_REPO=$(lsb_release -cs)
    echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
      sudo tee /etc/apt/sources.list.d/azure-cli.list
    curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
    sudo apt-get install apt-transport-https
    sudo apt-get update && sudo apt-get install azure-cli

    az storage blob upload-batch --destination "releases" --source artifacts/deployment --account-name roslynomnisharp --account-key $BLOB_KEY
  fi
notifications:
  slack:
    rooms:
    - omnisharp:U358j4McaEOIzFqXvGexVokC#integrations<commit_msg>Only update latest.txt if every expected build is present<commit_after>language: csharp
sudo: required
dist: trusty
env:
  global:
  - secure: <KEY>
  - secure: <KEY>
  - secure: <KEY>
  - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
  - DOTNET_CLI_TELEMETRY_OPTOUT=true
mono: latest
os:
- linux
- osx
osx_image: xcode9.2
script:
- git fetch --unshallow
- git fetch origin '+refs/heads/*:refs/heads/*'
- git branch -r
- chmod 755 ./build.sh
- "./build.sh --configuration Release --verbosity Verbose --target All --publish-all --archive"
addons:
  apt:
    packages:
    - gettext
    - libcurl4-openssl-dev
    - libicu-dev
    - libssl-dev
    - libunwind8
    - zlib1g
    - curl
    - python3
    - openssl
install:
- |
  if [ "$TRAVIS_OS_NAME" == "linux" ]; then
    # On Linux, we build libuv from source
    sudo apt-get install make automake libtool
    curl -sSL https://github.com/libuv/libuv/archive/v1.14.0.tar.gz | sudo tar zxf - -C /usr/local/src
    pushd /usr/local/src/libuv-1.14.0
    sudo sh autogen.sh
    sudo ./configure
    sudo make
    sudo make install
    popd
    sudo rm -rf /usr/local/src/libuv-1.14.0
    sudo ldconfig
  elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
    # On OSX, we install libuv via Homebrew
    brew install libuv
  fi
- export PATH="$PWD/.dotnet:$PATH"
after_success: |
  if [[ "$TRAVIS_OS_NAME" == "linux" && $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then
    AZ_REPO=$(lsb_release -cs)
    echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
      sudo tee /etc/apt/sources.list.d/azure-cli.list
    curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
    sudo apt-get install apt-transport-https
    sudo apt-get update && sudo apt-get install azure-cli

    # Only update "latest" version if we have all of the builds
    $deploymentDir = "artifacts/deployment"
    if [ -e $deploymentDir/"omnisharp-osx.zip" ] && \
       [ -e $deploymentDir/"omnisharp-linux-x86.zip" ] && \
       [ -e $deploymentDir/"omnisharp-linux-x64.zip" ] && \
       [ -e $deploymentDir/"omnisharp-win-x86.zip" ] && \
       [ -e $deploymentDir/"omnisharp-win-x64.zip" ]; then
      
      az storage blob upload-batch --destination "releases" --source artifacts/deployment --account-name roslynomnisharp --account-key $BLOB_KEY
    fi  
  fi
notifications:
  slack:
    rooms:
    - omnisharp:U358j4McaEOIzFqXvGexVokC#integrations
{'fraction_non_alphanumeric': 0.13232300384528387, 'fraction_numerical': 0.014023976475910428, 'mean_word_length': 2.7794871794871794, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, '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': '3038186', 'n_tokens_mistral': 1734, 'n_tokens_neox': 1633, 'n_words': 381}