-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtests-environment.sh
51 lines (41 loc) · 1.78 KB
/
tests-environment.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
set -e
set -x
sudo add-apt-repository --yes ppa:beineri/opt-qt593-trusty
sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
echo "deb http://pkg.mxe.cc/repos/apt trusty main" | sudo tee /etc/apt/sources.list.d/mxeapt.list
sudo apt-get update -qq --allow-unauthenticated
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo wget https://raw.githubusercontent.com/martinribelotta/pydeployqt/master/deploy.py -O /usr/bin/pydeployqt
sudo chmod a+x /usr/bin/pydeployqt
MXE=mxe-${MXE_TRIPLE}
sudo apt-get install -y --allow-unauthenticated -o Dpkg::Options::="--force-overwrite" \
wget fuse gcc-8 g++-8 build-essential \
qt59base qt59tools qt59svg qt59imageformats qt59x11extras libglu1-mesa-dev \
${MXE}-gcc ${MXE}-g++ \
${MXE}-qtbase ${MXE}-qtsvg ${MXE}-qscintilla2 ${MXE}-qttools
export QTDIR=$(readlink -f /opt/qt*/)
#~ sudo apt-get install -y --allow-unauthenticated -o Dpkg::Options::="--force-overwrite" \
#~ wget fuse gcc-8 g++-8 build-essential \
#~ libglu1-mesa-dev libxkbcommon-dev libxkbcommon-x11-0 \
#~ ${MXE}-gcc ${MXE}-g++ \
#~ ${MXE}-qtbase ${MXE}-qtsvg ${MXE}-qscintilla2 ${MXE}-qttools
#~ sudo bash ci/extract-qt-installer
#~ export QTDIR=$(readlink -f /opt/qt*/5.12.4/gcc_64)
gcc --version
# sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90 --slave /usr/bin/g++ g++ /usr/bin/g++-8
gcc --version
mkdir -p /tmp/qsci
cp ./ci/BuildQSCI.mk /tmp/qsci
cd /tmp/qsci
export PATH=${QTDIR}/bin:${PATH}
make -f BuildQSCI.mk
cd /tmp/
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
sudo cp linuxdeployqt-continuous-x86_64.AppImage /usr/bin/linuxdeployqt
sudo chmod a+x /usr/bin/linuxdeployqt
cd -