image: darkmattercoder/qt-build:latest #entrypoint: [""] stages: - Build - Test - Run RWA:Build: stage: Build script: - pwd # list all files in whole git repo - echo "List all files:" - find - sudo apt update && sudo apt -y install make autoconf - mkdir build && cd build - qmake ../rwa-support-desktopapp.pro - make -j4 # list all files in whole git repo - echo "All files including artifacts "rwa-support-desktopapp" and "tests" binaries:" - find ../ artifacts: paths: - build/tests - build/rwa-support-desktopapp/rwa-support-desktopapp expire_in: 1 week RWA:Run: stage: Run script: # list all files in whole git repo - echo "List all files:" - find - sudo apt update && sudo apt install -y fluxbox xvfb x11-apps imagemagick - cd build/rwa-support-desktopapp - Xvfb :99 & - export DISPLAY=:99 - export QT_XCB_GL_INTEGRATION=none - ./rwa-support-desktopapp 2>&1 | tee rwa-support-desktopapp.log & - sleep 30s - xwd -display :99 -root | convert xwd:- png:./screenshot.png - kill $(pidof ./rwa-support-desktopapp) - sleep 1s - kill $(pidof /usr/bin/Xvfb) needs: ["RWA:Build"] artifacts: paths: - build/rwa-support-desktopapp/rwa-support-desktopapp.log - build/rwa-support-desktopapp/screenshot.png expire_in: 1 week RWA:Test: stage: Test script: # list all files in whole git repo - echo "List all files:" - find - sudo apt update && sudo apt -y install xvfb - cd build/tests - xvfb-run make check -j4 needs: ["RWA:Build"]