-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.gitlab-ci.yml
173 lines (163 loc) · 4.22 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
stages:
- Build
- Pack
- UnitTest
- Audit
#==--------------------------------------------------------------------------==
# Windows
#==--------------------------------------------------------------------------==
Build_Win:
stage: Build
tags:
- windows
before_script:
- git reset --hard
- git clean -f -d
- git submodule sync --recursive
- git submodule update --init --recursive
- CMD /C "SETX NAMELINT_LLVM_LIB Z:\@Win32\3party-lib\llvm\llvm_8_0_0_win_10_msvc2017_rel_32bit"
- ECHO $env:CRDSWDEVTLS
- ECHO $env:NAMELINT_LLVM_LIB
script:
- 'Get-ChildItem env:'
- 'Get-ChildItem env:CRDSWDEVTLS'
- 'Get-ChildItem env:NAMELINT_LLVM_LIB'
- $BuildFlowPy=$env:CRDSWDEVTLS+'/Script/BuildFlow/BuildFlow.py'
- ECHO $BuildFlowPy
- python $BuildFlowPy build-config './' 'build/windows' 'x86' 'Release'
- python $BuildFlowPy build-make './' 'build/windows' 'cppnamelint' 'x86' 'Release'
artifacts:
paths:
- build/windows/output
when: on_success
expire_in: 10 mins
Pack_Win:
stage: Pack
tags:
- windows
script:
- Push-Location script
- ./build-pack-win32.ps1
- Pop-Location
artifacts:
paths:
- build/
- script/
when: on_success
expire_in: 10 mins
UnitTest_Win:
stage: UnitTest
tags:
- windows
script:
- Push-Location script/release/windows
- ./cppnamelint test
- Pop-Location
#==--------------------------------------------------------------------------==
# Linux
#==--------------------------------------------------------------------------==
Build_Linux:
stage: Build
tags:
- linux
before_script:
- git reset --hard
- git clean -f -d
- git submodule sync --recursive
- git submodule update --init --recursive
- export NAMELINT_LLVM_LIB="$CRDSWDEVTLS/@Linux/3party-lib/llvm/llvm_8_0_0_ubuntu_18_04_gcc_7_4_rel_64bit"
- echo "CRDSWDEVTLS=$CRDSWDEVTLS"
- echo "NAMELINT_LLVM_LIB=$NAMELINT_LLVM_LIB"
script:
- ls -la /devtool
- ls -la $NAMELINT_LLVM_LIB
- BuildFlowPy=$CRDSWDEVTLS/Script/BuildFlow/BuildFlow.py
- python3 $BuildFlowPy build-config './' 'build/linux' 'x64' 'Release'
- ls -la ./
- python3 $BuildFlowPy build-make './' 'build/linux' 'cppnamelint' 'x64' 'Release'
- ls -la ./
artifacts:
paths:
- build/linux/output
when: on_success
expire_in: 10 mins
Pack_Linux:
stage: Pack
tags:
- linux
script:
- pushd ./script
- git reset --hard
- ./build-pack-linux.sh
- popd
artifacts:
paths:
- script/release/linux/
when: on_success
expire_in: 10 mins
UnitTest_Linux:
stage: UnitTest
tags:
- linux
script:
- ls -la ./build/linux/
- pushd ./script/release/linux/
- ls -la
- chmod +x ./cppnamelint
- ls -la
- ./run-test-linux.sh
- popd
#==--------------------------------------------------------------------------==
# macOS
#==--------------------------------------------------------------------------==
Build_MacOs:
stage: Build
tags:
- macos
before_script:
- git reset --hard
- git clean -f -d
- git submodule sync --recursive
- git submodule update --init --recursive
- echo "$CRDSWDEVTLS/llvm_8_0_0_macos_10_14_5_clang_10_rel_64bit"
- export NAMELINT_LLVM_LIB="$CRDSWDEVTLS/@MacOS/3party-lib/llvm/llvm_8_0_0_macos_10_14_5_clang_10_rel_64bit"
- echo "CRDSWDEVTLS=$CRDSWDEVTLS"
- echo "NAMELINT_LLVM_LIB=$NAMELINT_LLVM_LIB"
- ls -la /Volumes/DevTool
script:
- BuildFlowPy=$CRDSWDEVTLS/Script/BuildFlow/BuildFlow.py
- python3 $BuildFlowPy build-config './' 'build/macos' 'x64' 'Release'
- ls -la ./
- python3 $BuildFlowPy build-make './' 'build/macos' 'cppnamelint' 'x64' 'Release'
- ls -la ./
artifacts:
paths:
- build/macos/output
when: on_success
expire_in: 10 mins
Pack_MacOs:
stage: Pack
tags:
- macos
script:
- pushd ./script
- git reset --hard
- ./build-pack-linux.sh
- popd
artifacts:
paths:
- script/release/macos/
when: on_success
expire_in: 10 mins
UnitTest_MacOs:
stage: UnitTest
tags:
- macos
script:
- ls -la ./build/macos/
- pushd ./script/release/macos
- ls -la
- chmod +x ./cppnamelint
- ls -la
- ./run-test-linux.sh
- popd