Build Qt from source in circleci

This commit is contained in:
Micah Lee 2020-03-22 15:32:25 -07:00
parent 360458372f
commit db9abb789d
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -20,6 +20,25 @@ jobs:
steps: steps:
- checkout - checkout
# https://wiki.qt.io/Building_Qt_5_from_Git
- run:
name: build Qt5 from source
command: |
sudo sh -c 'echo "deb-src http://deb.debian.org/debian buster main" >> /etc/apt/sources.list'
sudo apt-get update
sudo apt-get build-dep qt5-default -y
sudo apt-get install -y libxcb-xinerama0-dev
sudo apt-get install -y build-essential perl python git
sudo apt-get install -y '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
git clone git://code.qt.io/qt/qt5.git ~/qt5
cd ~/qt5
git checkout 5.14.0
perl init-repository
export LLVM_INSTALL_DIR=/usr/llvm
./configure -developer-build -opensource -confirm-license -nomake examples -nomake tests
make -j$(nproc)
make install
- run: - run:
name: install dependencies name: install dependencies
command: | command: |
@ -28,7 +47,6 @@ jobs:
sudo pip3 install poetry flake8 sudo pip3 install poetry flake8
poetry install poetry install
# run tests!
- run: - run:
name: run flake tests name: run flake tests
command: | command: |