Update install-dependencies.sh

This commit is contained in:
Andrea Cavalli 2020-12-26 14:35:09 +01:00
parent eab6f31317
commit 75404d7ea9

View File

@ -1,12 +1,9 @@
#!/bin/bash -e #!/bin/bash -e
set -e set -e
# ====== Setup environment variables if [[ "$OPERATING_SYSTEM_NAME" == "linux" ]]; then
source ./travis/setup_variables.sh
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
echo "==Linux====" echo "==Linux===="
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then elif [[ "$OPERATING_SYSTEM_NAME" == "osx" ]]; then
echo "==OSX======" echo "==OSX======"
export PYTHON=36 export PYTHON=36
brew install swig; brew install swig;
@ -36,7 +33,7 @@ elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "Running tl-parser on td_api" echo "Running tl-parser on td_api"
./tl-parser/bin/tl-parser -v -e scheme/td_api.tlo scheme/td_api.tl ./tl-parser/bin/tl-parser -v -e scheme/td_api.tlo scheme/td_api.tl
echo "Done .tlo" echo "Done .tlo"
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then elif [[ "$OPERATING_SYSTEM_NAME" == "windows" ]]; then
echo "==Windows==" echo "==Windows=="
choco install ccache choco install ccache
choco install make choco install make
@ -58,7 +55,7 @@ elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
cd $VCPKG_DIR cd $VCPKG_DIR
./vcpkg integrate install ./vcpkg integrate install
else else
echo "Unrecognized os: $TRAVIS_OS_NAME" echo "Unrecognized os: $OPERATING_SYSTEM_NAME"
exit 1 exit 1
fi fi