<commit_before>language: julia
sudo: required
dist: trusty
os:
  - linux
  - osx
julia:
  - 1.0
  - 1.1
  - nightly

branches:
  only:
    - master
    - /^release-.*/

notifications:
  email: false
cache:
  directories:
  - $HOME/.ccache
  - $HOME/.julia/registries # can we cache all of .julia?
env:
  - MPI_IMPL=mpich
  - MPI_IMPL=openmpi
before_install:
  - sh ./conf/travis-install-mpi.sh $MPI_IMPL
  - export PATH=$HOME/OpenMPI/bin:$HOME/MPICH/bin:$PATH
  - export CC=mpicc
  - export FC=mpif90
# Work around OpenMPI attempting to create overly long temporary
# file names - and erroring as a result
  - export TMPDIR=/tmp
# Work around MacOS/OpenMPI issue:
#   https://github.com/open-mpi/ompi/issues/6518
#   https://github.com/open-mpi/ompi/issues/5798
  - export OMPI_MCA_btl=self,tcp

jobs:
  include:
    - stage: "Tests" # implicit first stage
    - stage: "Documentation"
      julia: 1.0
      os: linux
      script:
        - export DOCUMENTER_DEBUG="true"
        - julia --color=yes --project=docs/ -e 'using Pkg;
                                                      Pkg.instantiate();
                                                      Pkg.develop(PackageSpec(path=pwd()));
                                                      Pkg.build()'
        - julia --color=yes --project=docs/ docs/make.jl
    - stage: "Coverage"
      julia: 1.0
      os: linux
      after_success: # Intentionally rerun tests
        - julia -e 'using Pkg; cd(Pkg.dir("MPI")); Pkg.add("Coverage")'<commit_msg>allow failures on OS X with openmpi<commit_after>language: julia
sudo: required
dist: trusty

os:
  - linux
  - osx
  
julia:
  - 1.0
  - 1.1
  - nightly

branches:
  only:
    - master
    - /^release-.*/

notifications:
  email: false

cache:
  directories:
  - $HOME/.ccache
  - $HOME/.julia/registries # can we cache all of .julia?

env:
  - MPI_IMPL=mpich
  - MPI_IMPL=openmpi

matrix:
  allow_failures: # issue 262
  - os: osx
    env: MPI_IMPL=openmpi

before_install:
  - sh ./conf/travis-install-mpi.sh $MPI_IMPL
  - export PATH=$HOME/OpenMPI/bin:$HOME/MPICH/bin:$PATH
  - export CC=mpicc
  - export FC=mpif90
# Work around OpenMPI attempting to create overly long temporary
# file names - and erroring as a result
  - export TMPDIR=/tmp
# Work around MacOS/OpenMPI issue:
#   https://github.com/open-mpi/ompi/issues/6518
#   https://github.com/open-mpi/ompi/issues/5798
  - export OMPI_MCA_btl=self,tcp

jobs:
  include:
    - stage: "Tests" # implicit first stage
    - stage: "Documentation"
      julia: 1.0
      os: linux
      script:
        - export DOCUMENTER_DEBUG="true"
        - julia --color=yes --project=docs/ -e 'using Pkg;
                                                      Pkg.instantiate();
                                                      Pkg.develop(PackageSpec(path=pwd()));
                                                      Pkg.build()'
        - julia --color=yes --project=docs/ docs/make.jl
    - stage: "Coverage"
      julia: 1.0
      os: linux
      after_success: # Intentionally rerun tests
        - julia -e 'using Pkg; cd(Pkg.dir("MPI")); Pkg.add("Coverage")'
{'fraction_non_alphanumeric': 0.12116368286445013, 'fraction_numerical': 0.012468030690537084, 'mean_word_length': 1.8759191176470589, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3540321', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1071, 'n_words': 241}