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
|
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 qtdeclarative5-dev qtdeclarative5-dev-tools qtchooser pkg-config libaccounts-qt5-dev libsignon-qt5-dev
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y dbus-test-runner xvfb qtdeclarative5-qtquick2-plugin lcov gcovr
build_amd64:
stage: build
script:
- export QT_SELECT=qt5
- mkdir build
- cd build
- qmake CONFIG+=debug CONFIG+=coverage ..
- make -j 4
artifacts:
paths:
- ./
test_amd64:
stage: test
script:
- cd build
- make coverage-html
dependencies:
- build_amd64
artifacts:
paths:
- ./
pages:
stage: deploy
script:
- cd build
- make install INSTALL_ROOT=out
- cd ..
- mkdir public
- cp -a build/coverage-html public/coverage
- cp -a build/out/usr/share/accounts-qml-module/doc/html/* public
dependencies:
- test_amd64
artifacts:
paths:
- public
|