#!/bin/bash

echo $TRAVIS_OS_NAME
echo $TOXENV

if [[ $TRAVIS_OS_NAME == 'osx' ]]
then
    #  install some custom requirements on OSX
    #  e.g. brew install pyenv-virtualenv

    case "${TOXENV}" in
	py27)
	# default version w/ the OS
           #  brew upgrade python
	;;

	py36)
	    brew upgrade python
	    ;;

    esac
    brew install aspell
    brew install hunspell
    cp win32/hunspell/*.dic ~/Library/Spelling
    cp win32/hunspell/*.aff ~/Library/Spelling
fi

    
