<commit_before># Origin: https://github.com/ah-/rdkafka-dotnet

language: csharp
sudo: required
dist: trusty

os:
   - osx
   - linux

env:
   - RUNTIME=mono
   - RUNTIME=coreclr

# TODO on linux: install http://docs.confluent.io/2.0.0/installation.html#installation-apt

install:
   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then git clone https://github.com/edenhill/librdkafka; fi
   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then pushd librdkafka && ./configure && make && sudo make install && popd; fi
   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libunwind8; fi
   - curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
   - dnvm upgrade
   - dnvm install -r $RUNTIME 1.0.0-rc1-update1
   - dnvm use -r $RUNTIME 1.0.0-rc1-update1
   - dnu restore
   - find ./src/RdKafka/runtimes
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then cp src/RdKafka/runtimes/osx.10.9-x64/native/librdkafka.dylib . ; fi

script:
   - if [ "$RUNTIME" == "coreclr" ]; then export FRAMEWORK="--framework dotnet5.4"; fi
   - dnu build ./src/RdKafka/project.json $FRAMEWORK
   - dnu pack ./src/RdKafka/project.json $FRAMEWORK
   - dnx -p ./test/RdKafka.Tests/ test<commit_msg>Try out another dnu restore to fix dylib loading<commit_after># Origin: https://github.com/ah-/rdkafka-dotnet

language: csharp
sudo: required
dist: trusty

os:
   - osx
   - linux

env:
   - RUNTIME=mono
   - RUNTIME=coreclr

# TODO on linux: install http://docs.confluent.io/2.0.0/installation.html#installation-apt

install:
   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then git clone https://github.com/edenhill/librdkafka; fi
   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then pushd librdkafka && ./configure && make && sudo make install && popd; fi
   - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libunwind8; fi
   - curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
   - dnvm upgrade
   - dnvm install -r $RUNTIME 1.0.0-rc1-update1
   - dnvm use -r $RUNTIME 1.0.0-rc1-update1
   - dnu restore
   - find ./src/RdKafka/runtimes
   - if [ "$TRAVIS_OS_NAME" == "osx" ]; then cp src/RdKafka/runtimes/osx.10.9-x64/native/librdkafka.dylib . ; fi

script:
   - if [ "$RUNTIME" == "coreclr" ]; then export FRAMEWORK="--framework dotnet5.4"; fi
   - dnu build ./src/RdKafka/project.json $FRAMEWORK
   - dnu pack ./src/RdKafka/project.json $FRAMEWORK
   - dnu restore
   - dnx -p ./test/RdKafka.Tests/ test
{'fraction_non_alphanumeric': 0.15625, 'fraction_numerical': 0.01661392405063291, 'mean_word_length': 3.0528846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2788131', 'n_tokens_mistral': 1042, 'n_tokens_neox': 1013, 'n_words': 213}