language: generic

sudo: false

matrix:
  include:
    - { os: linux, env: PYTHON_VERSION=2.7 }
    - { os: linux, env: PYTHON_VERSION=3.5 }
    - { os: osx, env: PYTHON_VERSION=2.7 }
    - { os: osx, env: PYTHON_VERSION=3.5 }

env:
  global:
  - ENCRYPTION_LABEL: "898e0934cf65"
  - COMMIT_AUTHOR_EMAIL: "janos.sallai@vanderbilt.edu"

install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install md5sha1sum; fi
  - source devtools/travis-ci/install.sh
  - conda config --set always_yes yes --set changeps1 no
  - conda config --add channels omnia
  - conda config --add channels janschulz
  - conda config --add channels glotzer
  - conda config --add channels bioconda
  - conda config --add channels mosdef
  - conda create -n test-environment python=$PYTHON_VERSION --file requirements.txt
  - source activate test-environment
  - pip install -e .

script:
  - py.test -v --cov=mbuild  --cov-report= --pyargs mbuild

after_success:
  - coveralls
  - if [[ $PYTHON_VERSION == 3.5 ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source devtools/travis-ci/update_gh_pages.sh; fi

language: generic

sudo: false

matrix:
  include:
    - { os: linux, env: PYTHON_VERSION=2.7 }
    - { os: linux, env: PYTHON_VERSION=3.5 }
    - { os: osx, env: PYTHON_VERSION=2.7 }
    - { os: osx, env: PYTHON_VERSION=3.5 }

env:
  global:
  - ENCRYPTION_LABEL: "898e0934cf65"
  - COMMIT_AUTHOR_EMAIL: "janos.sallai@vanderbilt.edu"

install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install md5sha1sum; fi
  - source devtools/travis-ci/install.sh
  - conda config --set always_yes yes --set changeps1 no
  - conda config --add channels omnia
  - conda config --add channels janschulz
  - conda config --add channels glotzer
  - conda config --add channels bioconda
  - conda config --add channels mosdef
  - conda create -n test-environment python=$PYTHON_VERSION --file requirements.txt
  - source activate test-environment
  - pip install -e .

script:
  - py.test -v --cov=mbuild  --cov-report= --pyargs mbuild

after_success:
  - coveralls
  - if [[ $PYTHON_VERSION == 3.5 ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source devtools/travis-ci/update_gh_pages.sh; fi

Fix Ruby 2.3 homebrew issue There is currently an issue where homebrew will always fail due to an issue with ruby. Forcing homebrew to update before installing any packages fixes this issue.
Fix Ruby 2.3 homebrew issue
There is currently an issue where homebrew will always fail due to an
issue with ruby. Forcing homebrew to update before installing any
packages fixes this issue.
