mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-13 09:56:30 +00:00
travis: install script improvements
This commit is contained in:
parent
5173b9f407
commit
f828e883bd
2 changed files with 23 additions and 21 deletions
|
@ -4,26 +4,29 @@ set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
if [[ "$(uname -s)" == 'Darwin' ]]; then
|
if [[ "$(uname -s)" == 'Darwin' ]]; then
|
||||||
# HOMEBREW_NO_AUTO_UPDATE=1
|
export HOMEBREW_NO_AUTO_UPDATE=1
|
||||||
export HOMEBREW_LOGS=~/brew-logs
|
export HOMEBREW_LOGS=~/brew-logs
|
||||||
export HOMEBREW_TEMP=~/brew-temp
|
export HOMEBREW_TEMP=~/brew-temp
|
||||||
mkdir $HOMEBREW_LOGS
|
mkdir $HOMEBREW_LOGS
|
||||||
mkdir $HOMEBREW_TEMP
|
mkdir $HOMEBREW_TEMP
|
||||||
# brew update
|
brew update > /dev/null
|
||||||
if [[ "${OPENSSL}" != "0.9.8" ]]; then
|
brew cleanup > /dev/null # do this here, so it won't automatically trigger in the middle of other stuff
|
||||||
brew outdated openssl || brew upgrade openssl
|
brew outdated pkg-config || brew upgrade pkg-config
|
||||||
fi
|
# do NOT update openssl 1.0.x, brew will also update a lot of dependent pkgs (and their dependencies) then!
|
||||||
|
#brew outdated openssl || brew upgrade openssl
|
||||||
|
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||||
|
brew install readline
|
||||||
|
export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||||
|
brew install zstd
|
||||||
|
brew install lz4
|
||||||
|
brew install xz # required for python lzma module
|
||||||
|
brew install Caskroom/cask/osxfuse
|
||||||
|
|
||||||
|
brew outdated pyenv || brew upgrade pyenv
|
||||||
if which pyenv > /dev/null; then
|
if which pyenv > /dev/null; then
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
fi
|
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
|
case "${TOXENV}" in
|
||||||
py35)
|
py35)
|
||||||
pyenv install 3.5.2
|
pyenv install 3.5.2
|
||||||
|
@ -39,10 +42,10 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
|
||||||
else
|
else
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y fakeroot
|
sudo apt-get install -y pkg-config fakeroot
|
||||||
sudo apt-get install -y liblz4-dev
|
#sudo apt-get install -y liblz4-dev # too old on trusty and xenial
|
||||||
|
#sudo apt-get install -y libzstd-dev # too old on trusty and xenial
|
||||||
sudo apt-get install -y libacl1-dev
|
sudo apt-get install -y libacl1-dev
|
||||||
sudo apt-get install -y pkg-config
|
|
||||||
sudo apt-get install -y libfuse-dev fuse # optional, for FUSE support
|
sudo apt-get install -y libfuse-dev fuse # optional, for FUSE support
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -5,14 +5,13 @@ set -x
|
||||||
|
|
||||||
if [[ "$(uname -s)" == "Darwin" ]]; then
|
if [[ "$(uname -s)" == "Darwin" ]]; then
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
if [[ "${OPENSSL}" != "0.9.8" ]]; then
|
|
||||||
# set our flags to use homebrew openssl
|
# set our flags to use homebrew openssl
|
||||||
export ARCHFLAGS="-arch x86_64"
|
export ARCHFLAGS="-arch x86_64"
|
||||||
export LDFLAGS="-L/usr/local/opt/openssl/lib"
|
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||||
export CFLAGS="-I/usr/local/opt/openssl/include"
|
#export LDFLAGS="-L/usr/local/opt/openssl/lib"
|
||||||
fi
|
#export CFLAGS="-I/usr/local/opt/openssl/include"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# do not use fakeroot, but run as root on travis.
|
# do not use fakeroot, but run as root on travis.
|
||||||
# avoids the dreaded EISDIR sporadic failures. see #2482.
|
# avoids the dreaded EISDIR sporadic failures. see #2482.
|
||||||
sudo bash -c "source ~/.venv/bin/activate ; tox -e $TOXENV -r"
|
sudo -E bash -c "source ~/.venv/bin/activate ; tox -e $TOXENV -r"
|
||||||
|
|
Loading…
Reference in a new issue