2015-08-07 13:17:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
if [[ "$(uname -s)" == 'Darwin' ]]; then
|
|
|
|
brew update || brew update
|
|
|
|
|
|
|
|
if [[ "${OPENSSL}" != "0.9.8" ]]; then
|
|
|
|
brew outdated openssl || brew upgrade openssl
|
|
|
|
fi
|
|
|
|
|
|
|
|
if which pyenv > /dev/null; then
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
fi
|
|
|
|
|
2015-08-09 22:03:19 +00:00
|
|
|
brew install lz4
|
2015-08-07 13:17:07 +00:00
|
|
|
brew outdated pyenv || brew upgrade pyenv
|
|
|
|
|
|
|
|
case "${TOXENV}" in
|
|
|
|
py32)
|
|
|
|
pyenv install 3.2.6
|
|
|
|
pyenv global 3.2.6
|
|
|
|
;;
|
|
|
|
py33)
|
|
|
|
pyenv install 3.3.6
|
|
|
|
pyenv global 3.3.6
|
|
|
|
;;
|
|
|
|
py34)
|
|
|
|
pyenv install 3.4.3
|
|
|
|
pyenv global 3.4.3
|
|
|
|
;;
|
2015-10-27 22:06:32 +00:00
|
|
|
py35)
|
|
|
|
pyenv install 3.5.0
|
|
|
|
pyenv global 3.5.0
|
|
|
|
;;
|
2015-08-07 13:17:07 +00:00
|
|
|
esac
|
|
|
|
pyenv rehash
|
2016-01-22 21:14:41 +00:00
|
|
|
python -m pip install --user 'virtualenv<14.0'
|
2015-08-07 13:17:07 +00:00
|
|
|
else
|
2016-01-22 21:14:41 +00:00
|
|
|
pip install 'virtualenv<14.0'
|
2015-08-09 21:51:46 +00:00
|
|
|
sudo add-apt-repository -y ppa:gezakovacs/lz4
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y liblz4-dev
|
2015-08-07 13:17:07 +00:00
|
|
|
sudo apt-get install -y libacl1-dev
|
|
|
|
fi
|
|
|
|
|
|
|
|
python -m virtualenv ~/.venv
|
|
|
|
source ~/.venv/bin/activate
|
2015-08-20 23:10:34 +00:00
|
|
|
pip install -r requirements.d/development.txt
|
|
|
|
pip install codecov
|
2015-08-07 13:17:07 +00:00
|
|
|
pip install -e .
|