-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
56 lines (49 loc) · 1.32 KB
/
.gitlab-ci.yml
File metadata and controls
56 lines (49 loc) · 1.32 KB
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
cache:
key: all
paths:
- .conan
- build
default:
# GCC 13 on U18 is not available.
# All images are listed at https://github.com/conan-io/conan-docker-tools/tree/master/modern#gcc
image: conanio/gcc13-ubuntu16.04
stages:
- prerequisites
- build
- test
- package
before_script:
- export CONAN_USER_HOME="$CI_PROJECT_DIR"
prerequisites:
stage: prerequisites
script:
- pip install -U 'conan<2' 'cmake>=3.27.9'
- conan profile new default || true
- conan profile update settings.compiler=gcc default
- conan profile update settings.compiler.libcxx=libstdc++11 default
- conan profile update settings.compiler.version=13 default
- conan profile update settings.arch=x86_64 default
- conan profile update settings.build_type=Release default
- conan profile update settings.os=Linux default || true
build:
stage: build
script:
- sudo apt-get update && sudo apt-get install -y docker.io ninja-build
- mkdir -p build
- cd build
- conan install ../Chapter08/customer --build=missing
- cmake -GNinja -DBUILD_TESTING=1 -DCMAKE_BUILD_TYPE=Release ../Chapter08/customer
- cmake --build .
test:
stage: test
script:
- cd build
- ctest .
package:
stage: package
script:
- cd build
- cpack .
artifacts:
paths:
- build/Customer*.deb