language: python
python:
  - "2.7"
  
cache:
  pip: true
  directories:
  - $HOME/.ccache
  
env:
  - SIMPHONY_VERSION=0.5.0
  - SIMPHONY_VERSION=master
matrix:
  allow_failures:
    - env: SIMPHONY_VERSION=master
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install mpi-default-bin mpi-default-dev ccache
  - sudo ln -s ccache /usr/local/bin/mpic++
  - export PATH=/usr/lib/ccache:${PATH}
  - ccache -s
  
install:
  # build and install lammps
  - ./install_external.sh
  - export PATH=$PATH:$PWD/mylammps/src/
  - pip install -r dev_requirements.txt
  - pip install git+https://github.com/simphony/simphony-common.git@${SIMPHONY_VERSION}#egg=simphony
  - pip install -r doc_requirements.txt
  - python setup.py develop

script:
  - flake8 --exclude=mylammps .
  - coverage run -m unittest discover
  - python setup.py build_sphinx

after_success:
  - pip install codecov
  - codecov

language: python
python:
  - "2.7"
  
cache:
  pip: true
  directories:
  - $HOME/.ccache
  
env:
  - SIMPHONY_VERSION=master
matrix:
  allow_failures:
    - env: SIMPHONY_VERSION=master
before_install:
  - sudo apt-get update -qq
  - sudo apt-get install mpi-default-bin mpi-default-dev ccache
  - sudo ln -s ccache /usr/local/bin/mpic++
  - export PATH=/usr/lib/ccache:${PATH}
  - ccache -s
  
install:
  # build and install lammps
  - ./install_external.sh
  - export PATH=$PATH:$PWD/mylammps/src/
  - pip install -r dev_requirements.txt
  - pip install git+https://github.com/simphony/simphony-common.git@${SIMPHONY_VERSION}#egg=simphony
  - pip install -r doc_requirements.txt
  - python setup.py develop

script:
  - flake8 --exclude=mylammps .
  - coverage run -m unittest discover
  - python setup.py build_sphinx

after_success:
  - pip install codecov
  - codecov

Build agains common master only.
Build agains common master only.
