forked from offu/WeRoBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
36 lines (32 loc) · 857 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
brew update
MAJOR_MAC_VERSION=$(sw_vers -productVersion | awk -F '.' '{print $1 "." $2}')
if [ $MAJOR_MAC_VERSION == "10.11" ]; then
# https://github.com/rvm/rvm/pull/3627
rvm get head
fi
case $PYTHON_INSTALL_METHOD in
tox)
brew install pyenv
brew outdated pyenv || brew upgrade pyenv
eval "$(pyenv init -)"
for version in $PYTHON_VERSION
do
pyenv install $version -s
done
pyenv local $PYTHON_VERSION
;;
*)
source travis/terryfy/library_installers.sh
clean_builds
get_python_environment $PYTHON_INSTALL_METHOD $PYTHON_VERSION venv
;;
esac
pip install --upgrade pip wheel
pip install -r dev-requirements.txt
brew install redis
brew services start redis
brew install mongodb
brew services start mongodb
brew install openssl
python --version