<commit_before>language: python
env:
  global:
    - CI=true

matrix:
  include:
    - os: linux
      python: 3.5
      env: TESTSUITE=lin35 OPENSSL=1.0.1f
      
    - os: linux
      python: 3.5
      env: TESTSUITE=lin35 OPENSSL=1.0.2j
      
    - os: linux
      python: 3.5
      env: TESTSUITE=lin35 OPENSSL=1.1.0c
    
    - os: osx
      sudo: required
      language: generic
      env: TESTSUITE=osx35

#  Manually install python on osx
install: |
  if [ -n "${OPENSSL}" ]; then
      OPENSSL_DIR="ossl-1/${OPENSSL}"
      if [[ ! -f "$HOME/$OPENSSL_DIR/bin/openssl" ]]; then
          curl -O https://www.openssl.org/source/openssl-$OPENSSL.tar.gz
          tar zxf openssl-$OPENSSL.tar.gz
          cd openssl-$OPENSSL
          ./config shared no-asm no-ssl2 no-ssl3 -fPIC --prefix="$HOME/$OPENSSL_DIR"
          # modify the shlib version to a unique one to make sure the dynamic
          # linker doesn't load the system one. This isn't required for 1.1.0 at the
          # moment since our Travis builders have a diff shlib version, but it doesn't hurt
          sed -i "s/^SHLIB_MAJOR=.*/SHLIB_MAJOR=100/" Makefile
          sed -i "s/^SHLIB_MINOR=.*/SHLIB_MINOR=0.0/" Makefile
          sed -i "s/^SHLIB_VERSION_NUMBER=.*/SHLIB_VERSION_NUMBER=100.0.0/" Makefile
          make depend
          make install
      fi

  fi
  
  if [[ $TESTSUITE == 'osx35' ]]; then

      brew update;
      brew outdated openssl || brew upgrade openssl;
      brew install python3;
      python3 -m venv venv;
      source venv/bin/activate;
  
  fi
  
  pip install . test

script: python tests/trashtest.py

branches:<commit_msg>More travis openssl stuff<commit_after>language: python
env:
  global:
    - CI=true

matrix:
  include:
    - os: linux
      python: 3.5
      env: TESTSUITE=lin35 OPENSSL=1.0.1f
      
    - os: linux
      python: 3.5
      env: TESTSUITE=lin35 OPENSSL=1.0.2j
      
    - os: linux
      python: 3.5
      env: TESTSUITE=lin35 OPENSSL=1.1.0c
    
    - os: osx
      sudo: required
      language: generic
      env: TESTSUITE=osx35

#  Manually install python on osx
install: |
  if [ -n "${OPENSSL}" ]; then
      OPENSSL_DIR="ossl-1/${OPENSSL}"
      if [[ ! -f "$HOME/$OPENSSL_DIR/bin/openssl" ]]; then
          curl -O https://www.openssl.org/source/openssl-$OPENSSL.tar.gz
          tar zxf openssl-$OPENSSL.tar.gz
          cd openssl-$OPENSSL
          ./config shared no-asm no-ssl2 no-ssl3 -fPIC --prefix="$HOME/$OPENSSL_DIR"
          # modify the shlib version to a unique one to make sure the dynamic
          # linker doesn't load the system one. This isn't required for 1.1.0 at the
          # moment since our Travis builders have a diff shlib version, but it doesn't hurt
          sed -i "s/^SHLIB_MAJOR=.*/SHLIB_MAJOR=100/" Makefile
          sed -i "s/^SHLIB_MINOR=.*/SHLIB_MINOR=0.0/" Makefile
          sed -i "s/^SHLIB_VERSION_NUMBER=.*/SHLIB_VERSION_NUMBER=100.0.0/" Makefile
          make depend
          make install
      fi

      cd $TRAVIS_BUILD_DIR
  fi
  
  if [[ $TESTSUITE == 'osx35' ]]; then

      brew update;
      brew outdated openssl || brew upgrade openssl;
      brew install python3;
      python3 -m venv venv;
      source venv/bin/activate;
  
  fi
  
  pip install . test

script: python tests/trashtest.py

branches:
{'fraction_non_alphanumeric': 0.10903050437934159, 'fraction_numerical': 0.025974025974025976, 'mean_word_length': 2.066666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4277626', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1138, 'n_words': 310}