2020-10-10 04:03:20 +02:00
|
|
|
#!/bin/bash -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# ====== Setup environment variables
|
|
|
|
source ./travis/setup_variables.sh
|
|
|
|
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
echo "==Linux===="
|
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
echo "==OSX======"
|
2020-10-10 17:49:22 +02:00
|
|
|
export PYTHON=36
|
|
|
|
brew install swig;
|
|
|
|
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci;
|
|
|
|
source ./macports-ci install;
|
|
|
|
yes | sudo port install python$PYTHON;
|
|
|
|
yes | sudo port install py$PYTHON-pip;
|
|
|
|
sudo port select --set python3 python$PYTHON;
|
|
|
|
sudo port select --set pip pip$PYTHON;
|
|
|
|
pip install pyinstaller --user;
|
|
|
|
export PATH=$PATH:$(python3 -c "import site; print(site.USER_BASE)")/bin;
|
2020-10-10 04:03:20 +02:00
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
|
|
|
|
echo "==Windows=="
|
|
|
|
choco install ccache
|
|
|
|
choco install visualstudio2019buildtools --version=16.7.0.0 --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"
|
|
|
|
choco install openjdk11 --version=11.0.8.10
|
|
|
|
choco install maven --version=3.6.3
|
|
|
|
choco install base64
|
|
|
|
choco install gperf
|
|
|
|
choco install strawberryperl
|
|
|
|
choco install nasm
|
|
|
|
choco install php --version=7.4.9 --package-parameters='"/ThreadSafe ""/InstallDir:C:\PHP"""'
|
2020-10-10 17:38:29 +02:00
|
|
|
choco install python3 --params "/InstallDir:C:\Python3"
|
2020-10-10 04:03:20 +02:00
|
|
|
|
2020-10-10 22:55:22 +02:00
|
|
|
[ -d ./windowsenv/ ] && $(yes | rm -rf ./windowsenv/)
|
2020-10-10 23:06:55 +02:00
|
|
|
[ -d $VCPKG_DIR ] && $(yes | rm -rf $VCPKG_DIR)
|
2020-10-10 04:03:20 +02:00
|
|
|
git clone --depth=1 https://github.com/tdlight-team/windows-amd64-prebuilt-libraries.git windowsenv
|
2020-10-10 23:14:17 +02:00
|
|
|
mv windowsenv/vcpkg $VCPKG_DIR
|
2020-10-10 04:03:20 +02:00
|
|
|
else
|
|
|
|
echo "Unrecognized os: $TRAVIS_OS_NAME"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|