<commit_before>language: cpp

before_install:
 - sudo apt-get update -qq
 - sudo apt-get install -qq libcurl4-openssl-dev libjsoncpp-dev libargtable2-dev libboost-test-dev libgnutls-dev libgcrypt11-dev dpkg-dev devscripts quilt valgrind
 - apt-get source libmicrohttpd
 - cd libmicrohttpd-0.4.6
 - debuild -us -uc
 - sudo dpkg -i ../libmicrohttpd5_0.4.6-1_amd64.deb ../libmicrohttpd-dev_0.4.6-1_amd64.deb
 - sudo pip install cpp-coveralls
 - cd ..


env:
 - HTTP_SERVER=YES HTTP_CLIENT=YES COMPILE_STUBGEN=YES
 - HTTP_SERVER=NO HTTP_CLIENT=NO COMPILE_STUBGEN=NO


compiler:
  - clang
  - gcc

script: 
    - mkdir -p build && cd build
    - cmake -DCMAKE_BUILD_TYPE=Debug -DHTTP_CLIENT=${HTTP_CLIENT} -DHTTP_SERVER=${HTTP_SERVER} -DCOMPILE_STUBGEN=${COMPILE_STUBGEN} .. 
    - make
    - valgrind --leak-check=full --error-exitcode=1 ./bin/unit_testsuite
    - make test
    - sudo make install && sudo ldconfig
    - g++ ../src/examples/simpleclient.cpp -ljsonrpccpp-client -ljsoncpp -ljsonrpccpp-common -lcurl -o sampleclient
    - g++ ../src/examples/simpleserver.cpp -ljsonrpccpp-server -ljsoncpp -ljsonrpccpp-common -lmicrohttpd -o sampleserver
    - sudo make uninstall
after_success:
    - cd ..
    - coveralls -e src/test -e src/examples -e cmake -e /usr/include -e build/CMakeFiles -E '.*\.h'<commit_msg>trying to fix ssl support on ubuntu 12.04 build<commit_after>language: cpp

before_install:
 - sudo apt-get update -qq
 - sudo apt-get install -qq libcurl4-openssl-dev libjsoncpp-dev libargtable2-dev libboost-test-dev libgnutls-dev libgcrypt11-dev valgrind wget
 - wget ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.38.tar.gz
 - tar -xvf libmicrohttpd-0.9.38.tar.gz
 - cd libmicrohttpd-0.9.38
 - ./configure && make
 - sudo make install && sudo ldconfig
 - cd ..
 - sudo pip install cpp-coveralls

env:
 - HTTP_SERVER=YES HTTP_CLIENT=YES COMPILE_STUBGEN=YES
 - HTTP_SERVER=NO HTTP_CLIENT=NO COMPILE_STUBGEN=NO


compiler:
  - clang
  - gcc

script: 
    - mkdir -p build && cd build
    - cmake -DCMAKE_BUILD_TYPE=Debug -DHTTP_CLIENT=${HTTP_CLIENT} -DHTTP_SERVER=${HTTP_SERVER} -DCOMPILE_STUBGEN=${COMPILE_STUBGEN} .. 
    - make
    - valgrind --leak-check=full --error-exitcode=1 ./bin/unit_testsuite
    - make test
    - sudo make install && sudo ldconfig
    - g++ ../src/examples/simpleclient.cpp -ljsonrpccpp-client -ljsoncpp -ljsonrpccpp-common -lcurl -o sampleclient
    - g++ ../src/examples/simpleserver.cpp -ljsonrpccpp-server -ljsoncpp -ljsonrpccpp-common -lmicrohttpd -o sampleserver
    - sudo make uninstall
after_success:
    - cd ..
    - coveralls -e src/test -e src/examples -e cmake -e /usr/include -e build/CMakeFiles -E '.*\.h'
{'fraction_non_alphanumeric': 0.12238023952095808, 'fraction_numerical': 0.015718562874251496, 'mean_word_length': 3.1186440677966103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3158115', 'n_tokens_mistral': 1062, 'n_tokens_neox': 994, 'n_words': 218}