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
**/__pycache__/
# User settings for Qt creator
*.user
image: ubuntu:trusty
job:
script:
# Set up third-party repositories
- sudo add-apt-repository -y ppa:george-edison55/cmake-3.x // https://askubuntu.com/a/610352
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test // https://askubuntu.com/a/581497
- sudo add-apt-repository -y ppa:beineri/opt-qt593-trusty // https://gitlab.com/probono/QtQuickApp/blob/master/.gitlab-ci.yml
- 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/qt59-env.sh
# 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)
include(ExternalProject)
project(bow-simulator)
set(CMAKE_CXX_STANDARD 14)
......
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