mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +00:00
ecad0ed53a
# Conflicts: ... everywhere ... # .travis.yml # Vagrantfile # borg/testsuite/key.py # docs/changes.rst # docs/quickstart.rst # docs/usage.rst # docs/usage/upgrade.rst.inc # src/borg/archive.py # src/borg/archiver.py # src/borg/crypto.pyx # src/borg/helpers.py # src/borg/key.py # src/borg/remote.py # src/borg/repository.py # src/borg/testsuite/archive.py # src/borg/testsuite/archiver.py # src/borg/testsuite/crypto.py # src/borg/testsuite/helpers.py # src/borg/testsuite/repository.py # src/borg/upgrader.py # tox.ini
51 lines
1.2 KiB
Bash
Executable file
51 lines
1.2 KiB
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
|
|
brew install pkg-config
|
|
brew install Caskroom/cask/osxfuse
|
|
|
|
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
|
|
;;
|
|
py36)
|
|
pyenv install 3.6.0
|
|
pyenv global 3.6.0
|
|
;;
|
|
esac
|
|
pyenv rehash
|
|
python -m pip install --user virtualenv
|
|
else
|
|
pip install virtualenv
|
|
sudo apt-get update
|
|
sudo apt-get install -y liblz4-dev
|
|
sudo apt-get install -y libacl1-dev
|
|
sudo apt-get install -y libfuse-dev fuse pkg-config # optional, for FUSE support
|
|
fi
|
|
|
|
python -m virtualenv ~/.venv
|
|
source ~/.venv/bin/activate
|
|
pip install -r requirements.d/development.txt
|
|
pip install codecov
|
|
pip install -e .[fuse]
|