Commit 83bb2028 authored by Alberto Mardegan's avatar Alberto Mardegan

Enable CI in gitlab

parent d5050636
Pipeline #3195911 passed with stages
in 8 minutes and 13 seconds
image: ubuntu:xenial
cache:
key: apt-cache
paths:
- apt-cache/
before_script:
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
- apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y qt5-qmake qtbase5-dev qtdeclarative5-dev qtchooser pkg-config libexiv2-dev libopencv-imgproc-dev libopencv-objdetect-dev
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y sqlite3 lcov gcovr
build_desktop:
stage: build
script:
- export QT_SELECT=qt5
- mkdir build
- cd build
- PREFIX=/opt/imaginario qmake CONFIG+=debug CONFIG+=coverage CONFIG+=desktop ..
- make -j 4
artifacts:
paths:
- build/
test_desktop:
stage: test
script:
- find build | xargs touch # Avoid rebuilding
- cd build
- make coverage-html
dependencies:
- build_desktop
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