mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-27 02:08:54 +00:00
735d058a8d
use python 3.5.2 on trusty travis-ci machines their 3.5(.0) misses lzma support at the moment. after this is fixed, we likely want to go back to 3.5(.0) to run the tests.
43 lines
952 B
Bash
Executable file
43 lines
952 B
Bash
Executable file
#!/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
|
|
|
|
brew install lz4
|
|
brew install xz # required for python lzma module
|
|
brew outdated pyenv || brew upgrade pyenv
|
|
|
|
case "${TOXENV}" in
|
|
py34)
|
|
pyenv install 3.4.3
|
|
pyenv global 3.4.3
|
|
;;
|
|
py35)
|
|
pyenv install 3.5.1
|
|
pyenv global 3.5.1
|
|
;;
|
|
esac
|
|
pyenv rehash
|
|
python -m pip install --user 'virtualenv<14.0'
|
|
else
|
|
pip install 'virtualenv<14.0'
|
|
sudo apt-get install -y liblz4-dev
|
|
sudo apt-get install -y libacl1-dev
|
|
fi
|
|
|
|
python -m virtualenv ~/.venv
|
|
source ~/.venv/bin/activate
|
|
pip install -r requirements.d/development.txt
|
|
pip install codecov
|
|
pip install -e .
|