forked from reMarkable/qtwebapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
44 lines (42 loc) · 816 Bytes
/
.gitlab-ci.yml
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
image: msrd0/ubuntu-cmake-qt5
build:
stage: build
script:
- pushd QtWebApp
- mkdir build
- pushd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make
- mkdir root
- make DESTDIR=root install
- pushd root
- tar cfj ../../../qtwebapp.tar.bz2 --owner=root --group=root *
- popd # root
- popd # build
- popd # QtWebApp
artifacts:
paths:
- qtwebapp.tar.bz2
demos:
stage: test
before_script:
- sudo tar xfj qtwebapp.tar.bz2 -C /
- sudo ldconfig
script:
- pushd Demo1
- mkdir build
- cd build
- cmake ..
- make
- popd # Demo1
- pushd Demo2
- mkdir build
- cd build
- cmake ..
- make
- popd # Demo2
- mv Demo1/build/demo1 Demo2/build/demo2 .
artifacts:
paths:
- demo1
- demo2