Commit 8d45869e authored by Stefan Pfeifer's avatar Stefan Pfeifer

Add gitlab-ci.yml for building and running tests

parent 12644b30
Pipeline #39493383 failed with stage
in 28 seconds
# Python byte code
# User settings for Qt creator
image: ubuntu:trusty
# Set up third-party repositories
- sudo add-apt-repository -y ppa:george-edison55/cmake-3.x //
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test //
- sudo add-apt-repository -y ppa:beineri/opt-qt593-trusty //
- sudo apt update -qq
# Install needed packages and set up development environment
- sudo apt install cmake build-essential gcc-6 g++-6 qt59base libqt5x11extras5-dev -y
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6
- . /opt/qt59/bin/
# Build application
- mkdir build && cd build
- cmake ../ -DCMAKE_BUILD_TYPE=Release
- make -j$(nproc)
# Run tests
- ./bow-simulator-test
cmake_minimum_required(VERSION 3.5.1)
cmake_minimum_required(VERSION 3.2.2)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment