<commit_before>sudo: required

stage_generic_linux: &stage_generic_linux
  # change dir
  before_script:
    - mkdir qutip_testing
    - cd qutip_testing
  # command to run tests
  script: 
    - python -m qutip.about
    - nosetests --verbosity=2 --with-coverage --cover-package=qutip qutip
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
    - source activate test-environment
    - conda install mkl blas=*=mkl numpy scipy nose cython coveralls
    - python setup.py install

stage_linux_35: &stage_linux_35
  <<: *stage_generic_linux
  os: linux
  dist: trusty
  language: python
  python: 3.5

stage_linux_36: &stage_linux_36
  <<: *stage_generic_linux
  os: linux
  dist: trusty
  language: python
  python: 3.6

stage_linux_37: &stage_linux_37
  <<: *stage_generic_linux
  os: linux
  dist: xenial
  language: python
  python: 3.7

stage_linux_37_omp: &stage_linux_37_omp
  <<: *stage_generic_linux
  <<: *stage_linux_37
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
    - source activate test-environment
    - conda install mkl blas=*=mkl numpy scipy nose cython coveralls
    - python setup.py install --with-openmp
  after_success:
    - coveralls

  stage_osx: &stage_osx
  os: osx
  osx_image: xcode10
  language: generic
  # change dir
  before_script:
    - mkdir qutip_testing
    - cd qutip_testing
  # command to run tests
  script: 
    - python -m qutip.about
    - nosetests --verbosity=2 --with-coverage --cover-package=qutip qutip
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
    - source activate test-environment
    - conda install mkl blas=*=mkl numpy scipy nose cython coveralls
    - python setup.py install


stages:
  - linux
  - osx

jobs:
  include:
    - stage: linux
      <<: *stage_linux_35
    - stage: linux
      <<: *stage_linux_36
    - stage: linux
      <<: *stage_linux_37
    - stage: linux
      <<: *stage_linux_37_omp
    
    - stage: osx
      <<: *stage_osx<commit_msg>minor change<commit_after>sudo: required

stage_generic_linux: &stage_generic_linux
  # change dir
  before_script:
    - mkdir qutip_testing
    - cd qutip_testing
  # command to run tests
  script: 
    - python -m qutip.about
    - nosetests --verbosity=2 --with-coverage --cover-package=qutip qutip
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
    - source activate test-environment
    - conda install mkl blas=*=mkl numpy scipy nose cython coveralls
    - python setup.py install

stage_linux_35: &stage_linux_35
  <<: *stage_generic_linux
  os: linux
  dist: trusty
  language: python
  python: 3.5

stage_linux_36: &stage_linux_36
  <<: *stage_generic_linux
  os: linux
  dist: trusty
  language: python
  python: 3.6

stage_linux_37: &stage_linux_37
  <<: *stage_generic_linux
  os: linux
  dist: xenial
  language: python
  python: 3.7

stage_linux_37_omp: &stage_linux_37_omp
  <<: *stage_generic_linux
  dist: xenial
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
    - source activate test-environment
    - conda install mkl blas=*=mkl numpy scipy nose cython coveralls
    - python setup.py install --with-openmp
  after_success:
    - coveralls

  stage_osx: &stage_osx
  os: osx
  osx_image: xcode10
  language: generic
  # change dir
  before_script:
    - mkdir qutip_testing
    - cd qutip_testing
  # command to run tests
  script: 
    - python -m qutip.about
    - nosetests --verbosity=2 --with-coverage --cover-package=qutip qutip
  install:
    - wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda info -a
    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
    - source activate test-environment
    - conda install mkl blas=*=mkl numpy scipy nose cython coveralls
    - python setup.py install

stages:
  - linux
  - osx

jobs:
  include:
    - stage: linux
      <<: *stage_linux_35
    - stage: linux
      <<: *stage_linux_36
    - stage: linux
      <<: *stage_linux_37
    - stage: linux
      <<: *stage_linux_37_omp
    - stage: osx
      <<: *stage_osx
{'fraction_non_alphanumeric': 0.10153256704980843, 'fraction_numerical': 0.018460466736328805, 'mean_word_length': 2.7782894736842105, 'pattern_counts': {'":': 0, '<': 41, '<?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': '701623', 'n_tokens_mistral': 2182, 'n_tokens_neox': 2077, 'n_words': 501}