-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
149 lines (139 loc) · 3.73 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
variables:
GIT_SSL_NO_VERIFY: "1"
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: normal
GIT_CLONE_PATH: $CI_BUILDS_DIR/opensource/xdispatch
ubuntu-1604-clang:
stage: build
image: builder-1604-clang:latest
tags:
- docker
script:
- cd $CI_PROJECT_DIR/build
- ./generator.sh mode=release compiler=clang generator=ninja location=outside -DBUILD_XDISPATCH_TESTS=1 -DXDISPATCH_INCLUDE_PACKAGING=1
- cd $CI_PROJECT_DIR/../xdispatch_clang-ninja-release
- ninja
- cp -rvf bin $CI_PROJECT_DIR
artifacts:
paths:
- bin/
expire_in: 1 week
ubuntu-1604-test:
stage: test
image: builder-1604-clang:latest
tags:
- docker
dependencies:
- ubuntu-1604-clang
script:
- cd bin
- ls -l
- ./xdispatch_tests -k || true
ubuntu-1604-gcc:
stage: build
image: builder-1604-clang:latest
tags:
- docker
script:
- cd $CI_PROJECT_DIR/build
- ./generator.sh mode=release compiler=gcc generator=makefiles location=outside -DBUILD_XDISPATCH_TESTS=1 -DXDISPATCH_INCLUDE_PACKAGING=1
- cd $CI_PROJECT_DIR/../xdispatch_gcc-makefiles-release
- make -j4 all
- cp -rvf bin $CI_PROJECT_DIR
artifacts:
paths:
- bin/
expire_in: 1 week
ubuntu-1404-clang:
stage: build
image: builder-1404-clang:latest
tags:
- docker
script:
- cd $CI_PROJECT_DIR/build
- ./generator.sh mode=release compiler=clang generator=ninja location=outside -DBUILD_XDISPATCH_TESTS=1 -DXDISPATCH_INCLUDE_PACKAGING=1
- cd $CI_PROJECT_DIR/../xdispatch_clang-ninja-release
- ninja
- cp -rvf bin $CI_PROJECT_DIR
artifacts:
paths:
- bin/
expire_in: 1 week
macos-1013-clang:
stage: build
tags:
- macos
script:
- cd $CI_PROJECT_DIR/build
- ./generator.sh mode=release compiler=clang generator=ninja location=outside -DBUILD_XDISPATCH_TESTS=1 -DXDISPATCH_INCLUDE_PACKAGING=1
- cd $CI_PROJECT_DIR/../xdispatch_clang-ninja-release
- ninja
- cp -rvf bin $CI_PROJECT_DIR
artifacts:
paths:
- bin/
expire_in: 1 week
macos-1013-test:
stage: test
tags:
- macos
dependencies:
- macos-1013-clang
script:
- cd bin
- ls -l
- ./xdispatch_tests -k || true
macos-ios:
stage: build
tags:
- macos
script:
- cd $CI_PROJECT_DIR/build
- ./generator.sh mode=release compiler=ios generator=makefiles location=outside -DBUILD_XDISPATCH_TESTS=1 -DXDISPATCH_INCLUDE_PACKAGING=1
- cd $CI_PROJECT_DIR/../xdispatch_ios-makefiles-release
- make -j4
- cp -rvf bin $CI_PROJECT_DIR
artifacts:
paths:
- bin/
expire_in: 1 week
windows-vs2019-x86:
stage: build
tags:
- windows
- vs2019
script:
- cd /d %CI_PROJECT_DIR%/build
- call generator.bat release ninja outside "-DBUILD_XDISPATCH_TESTS=1" "-DXDISPATCH_INCLUDE_PACKAGING=1"
- cd /d %CI_PROJECT_DIR%/../xdispatch_win32-ninja-release
- ninja
- cp -rvf bin %CI_PROJECT_DIR%
artifacts:
paths:
- bin/
expire_in: 1 week
windows-vs2019-test:
stage: test
tags:
- windows
dependencies:
- windows-vs2019-x86
script:
- cd bin
- ls
- xdispatch_tests.exe -k || true
windows-vs2019-amd64:
stage: build
tags:
- windows
- vs2019
script:
- cd /d %CI_PROJECT_DIR%/build
- call generator.bat release ninja_64 outside "-DBUILD_XDISPATCH_TESTS=1" "-DXDISPATCH_INCLUDE_PACKAGING=1"
- cd /d %CI_PROJECT_DIR%/../xdispatch_win32-ninja_64-release
- ninja
- cp -rvf bin %CI_PROJECT_DIR%
artifacts:
paths:
- bin/
expire_in: 1 week