-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
83 lines (72 loc) · 1.81 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
workflow:
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
variables:
CONAN_REMOTE: "artifactory"
- if: $CI_COMMIT_REF_NAME =~ /\Arelease\/.+\z/
variables:
CONAN_REMOTE: "artifactory"
- when: always
variables:
CONAN_REMOTE: "artifactory-staging"
image: registry.gitlab.com/tankerhq/docker/native:latest
before_script:
- poetry run python -m pip install --upgrade pip
- poetry install
stages:
- build
- deploy
.build:
stage: build
except:
- schedules
build/linux:
extends: .build
tags:
- linux
- compilation
script:
- poetry run python run-ci.py --isolate-conan-user-home build-and-test --remote $CONAN_REMOTE --profile linux-x86_64
build/macos/arm:
extends: .build
tags: [macos, arm]
script:
- poetry run python run-ci.py --isolate-conan-user-home build-and-test --remote $CONAN_REMOTE --profile macos-armv8
build/macos/x86_64:
extends: .build
tags: [macos, x86_64]
script:
- poetry run python run-ci.py --isolate-conan-user-home build-and-test --remote $CONAN_REMOTE --profile macos-x86_64
build/windows:
extends: .build
tags: [windows]
script:
- poetry run python run-ci.py --isolate-conan-user-home build-and-test --remote $CONAN_REMOTE --profile windows-x86_64
coverage:
stage: build
only:
- schedules
script:
- poetry run python run-ci.py --isolate-conan-user-home build-and-test --coverage --remote $CONAN_REMOTE --profile linux-x86_64 debug
- mv build/linux-debug/x86_64/Release/coverage coverage
tags:
- linux
- compilation
artifacts:
paths:
- coverage/
expire_in: 7 days
pages:
stage: deploy
only:
- schedules
dependencies:
- coverage
script:
- mv coverage/ public/
artifacts:
paths:
- public
expire_in: 7 days
tags:
- linux