nameof_module/.ci/install.sh

25 lines
513 B
Bash
Raw Normal View History

2019-07-28 10:29:34 +00:00
#!/usr/bin/env bash
2019-07-28 10:29:34 +00:00
set -ex
if [[ "$(uname -s)" == 'Darwin' ]]; then
brew update || brew update
brew outdated pyenv || brew upgrade pyenv
brew install pyenv-virtualenv
2019-07-28 10:29:34 +00:00
brew install cmake || brew upgrade cmake || true
if which pyenv > /dev/null; then
eval "$(pyenv init -)"
fi
2019-07-28 10:29:34 +00:00
pyenv install 3.7.1
pyenv virtualenv 3.7.1 conan
pyenv rehash
pyenv activate conan
fi
pip install conan --upgrade
2019-07-28 10:29:34 +00:00
pip install conan_package_tools bincrafters_package_tools
conan user