blob: ce4e5e0eae5fcd1ecf944d505635e1d1e668e706 (
plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
|
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-desktop.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
- ./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"]
|