#!/bin/bash

# Author: Dominik Gresch <greschd@gmx.ch>

# Be verbose, and stop with error as soon there's one
set -ev

cd ${TRAVIS_BUILD_DIR}

pip install codecov

case "$INSTALL_TYPE" in
    dev)
        pip install -e .[dev]
        ;;
    dev_sdist)
        python setup.py sdist
        ls -1 dist/ | xargs -I % pip install dist/%[dev]
        ;;
    dev_bdist_wheel)
        python setup.py bdist_wheel
        ls -1 dist/ | xargs -I % pip install dist/%[dev]
        ;;
esac

#!/bin/bash

# Author: Dominik Gresch <greschd@gmx.ch>

# Be verbose, and stop with error as soon there's one
set -ev

cd ${TRAVIS_BUILD_DIR}

pip install codecov
pip install -U setuptools wheel

case "$INSTALL_TYPE" in
    dev)
        pip install -e .[dev]
        ;;
    dev_sdist)
        python setup.py sdist
        ls -1 dist/ | xargs -I % pip install dist/%[dev]
        ;;
    dev_bdist_wheel)
        python setup.py bdist_wheel
        ls -1 dist/ | xargs -I % pip install dist/%[dev]
        ;;
esac

Update wheel and setuptools before travis install.
Update wheel and setuptools before travis install.
