-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline-windows.txt
59 lines (58 loc) · 1.86 KB
/
pipeline-windows.txt
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
node('Windows10') {
stage('Clean') {
if (params.BUILD_CLEAN) {
cleanSetup()
}
}
stage('Update') {
if (!params.BUILD_CLEAN) {
updateSource()
}
}
stage('Configure') {
bat 'if not exist opencmiss mkdir opencmiss'
dir('./setup') {
git branch: 'develop', url: 'https://github.com/OpenCMISS/setup.git'
}
dir('./setup-build') {
bat '''
$env:path = "$env:path;C:\\Python37_x64;C:\\swigwin-4.0.1"
"C:\\Program Files\\CMake\\bin\\cmake.exe" -G"Visual Studio 14 2015 Win64" -DOPENCMISS_ROOT=../opencmiss ../setup
'''
}
}
stage('Make') {
dir('./setup-build') {
bat '''
$env:path = "$env:path;C:\\Python37_x64;C:\\swigwin-4.0.1"
"C:\\Program Files\\CMake\\bin\\cmake.exe" --build . --config Release
'''
}
}
stage('Test') {
dir('./opencmiss/build/manage/config/') {
bat '''
$env:path = "$env:path;C:\\Python37_x64;C:\\swigwin-4.0.1"
"C:\\Program Files\\CMake\\bin\\cmake.exe" --build . --target keytests --config Release
'''
}
}
stage('Package') {
dir('./opencmiss/build/manage/') {
if (params.DO_RELEASE) {
bat '"C:\\Program Files\\CMake\\bin\\cmake.exe" -DOPENCMISS_RELEASE=ON .'
} else {
bat '"C:\\Program Files\\CMake\\bin\\cmake.exe" -DOPENCMISS_RELEASE=OFF .'
}
bat '"C:\\Program Files\\CMake\\bin\\cmake.exe" --build . --target package_sdk --config Release'
}
}
stage('Archive') {
dir('./opencmiss/build/manage/packaging/sdk/package/') {
archiveArtifacts artifacts: 'OpenCMISS-Libraries*'
}
}
stage('Finish') {
echo "Finish"
}
}