<commit_before>language: cpp
compiler:
  - clang
notifications:
  email: false
env:
  - JULIAVERSION="juliareleases" 
  - JULIAVERSION="julianightlies"
before_install:
  - sudo add-apt-repository ppa:staticfloat/julia-deps -y
  - sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y
  - sudo apt-get update -qq -y
  - sudo apt-get install libpcre3-dev julia -y
  - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - ./miniconda.sh -b
  - export PATH=${HOME}/miniconda/bin:$PATH
  - conda update --yes conda
  # The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
  - sudo rm -rf /dev/shm
  - sudo ln -s /run/shm /dev/shm
  - conda install --yes binstar
  - conda install --yes -c https://conda.binstar.org/jzuhone yt==dev
  - wget http://yt-project.org/data/enzo_tiny_cosmology.tar.gz
  - wget http://yt-project.org/data/WindTunnel.tar.gz
  - tar -zxvf enzo_tiny_cosmology.tar.gz
  - tar -zxvf WindTunnel.tar.gz
  - julia -e 'Pkg.add("Glob")'
script:
  - julia -e 'Pkg.init(); run(`ln -s $(pwd()) $(Pkg.dir("YT"))`); Pkg.pin("YT"); Pkg.resolve()'
  - julia -e 'using YT; @assert isdefined(:YT); @assert typeof(YT) === Module'
  - julia --code-coverage test/runtests.jl
after_success:
  - julia -e 'cd(Pkg.dir("YT")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'<commit_msg>This should drop out the physical_constants and units files from code coverage<commit_after>language: cpp
compiler:
  - clang
notifications:
  email: false
env:
  - JULIAVERSION="juliareleases" 
  - JULIAVERSION="julianightlies"
before_install:
  - sudo add-apt-repository ppa:staticfloat/julia-deps -y
  - sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y
  - sudo apt-get update -qq -y
  - sudo apt-get install libpcre3-dev julia -y
  - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - ./miniconda.sh -b
  - export PATH=${HOME}/miniconda/bin:$PATH
  - conda update --yes conda
  # The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
  - sudo rm -rf /dev/shm
  - sudo ln -s /run/shm /dev/shm
  - conda install --yes binstar
  - conda install --yes -c https://conda.binstar.org/jzuhone yt==dev
  - wget http://yt-project.org/data/enzo_tiny_cosmology.tar.gz
  - wget http://yt-project.org/data/WindTunnel.tar.gz
  - tar -zxvf enzo_tiny_cosmology.tar.gz
  - tar -zxvf WindTunnel.tar.gz
  - julia -e 'Pkg.add("Glob")'
script:
  - julia -e 'Pkg.init(); run(`ln -s $(pwd()) $(Pkg.dir("YT"))`); Pkg.pin("YT"); Pkg.resolve()'
  - julia -e 'using YT; @assert isdefined(:YT); @assert typeof(YT) === Module'
  - julia --code-coverage test/runtests.jl
after_success:
  - julia -e 'cd(Pkg.dir("YT")); Pkg.add("Coverage"); using Glob; using Coverage; fns = glob("src/*.jl"); splice!(fns, findfirst(fns, "src/units.jl")); splice!(fns, findfirst(fns, "src/physical_constants.jl")); Coveralls.submit([Coveralls.process_file(fn) for fn in fns])'
{'fraction_non_alphanumeric': 0.15622982569399613, 'fraction_numerical': 0.0032278889606197547, 'mean_word_length': 3.524087591240876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '42834', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1205, 'n_words': 274}