-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline-functionaltests-macos.txt
71 lines (70 loc) · 3.4 KB
/
pipeline-functionaltests-macos.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
60
61
62
63
64
65
66
67
68
69
70
71
node('Mac10.12.3') {
ws ('/Users/cmiss/jenkins/workspace/OpenCMISS_MacOS') {
stage('Prepare') {
sh 'mkdir -p opencmiss'
}
stage('Clone') {
dir('./setup') {
git branch: 'develop', url: 'https://github.com/OpenCMISS/setup.git'
}
dir('./test_framework') {
git branch: 'develop', url: 'https://github.com/OpenCMISS/functional_test_framework.git'
}
}
stage('Configure Libraries') {
dir('./setup-build') {
if (params.BUILD_DEBUG) {
sh 'cmake -DOPENCMISS_ROOT=../opencmiss DOPENCMISS_LIBRARIES=iron -DOPENCMISS_CONFIG_BUILD_TYPE=Debug ../setup'
}
else {
sh 'cmake -DOPENCMISS_ROOT=../opencmiss DOPENCMISS_LIBRARIES=iron -DOPENCMISS_CONFIG_BUILD_TYPE=Release ../setup'
}
}
}
stage('Make Libraries') {
dir('./setup-build') {
sh 'make'
}
}
stage('Configure Tests') {
dir('./test_framework-build') {
if (params.BUILD_DEBUG) {
sh '''#!/bin/bash
source /Users/cmiss/jenkins/workspace/OpenCMISS_MacOS/opencmiss/install/virtual_environments/oclibs_venv_py37_debug/bin/activate
export PYTHONPATH=$PYTHONPATH:/Users/cmiss/jenkins/workspace/OpenCMISS_MacOS/opencmiss/install/lib/python3.7/opencmiss.iron/
cmake -DOpenCMISSLibs_DIR=/Users/cmiss/jenkins/workspace/OpenCMISS_MacOS/opencmiss/install -DTEST_DB_REPO_URL=${DATABASE_URL} -DTEST_DB_REPO_BRANCH=${DATABASE_BRANCH} -DTEST_DB=test_db/tests ../test_framework
deactivate
'''
}
else
{
sh '''#!/bin/bash
source /Users/cmiss/jenkins/workspace/OpenCMISS_MacOS/opencmiss/install/virtual_environments/oclibs_venv_py37_release/bin/activate
export PYTHONPATH=$PYTHONPATH:/Users/cmiss/jenkins/workspace/OpenCMISS_MacOS/opencmiss/install/lib/python3.7/opencmiss.iron/
cmake -DOpenCMISSLibs_DIR=/Users/cmiss/jenkins/workspace/OpenCMISS_MacOS/opencmiss/install -DTEST_DB_REPO_URL=${DATABASE_URL} -DTEST_DB_REPO_BRANCH=${DATABASE_BRANCH} -DTEST_DB=test_db/tests ../test_framework
deactivate
''' }
}
}
stage('Make Tests') {
dir('./test_framework-build') {
if (params.BUILD_DEBUG) {
sh '''#!/bin/bash
source /Users/cmiss/jenkins/workspace/OpenCMISS_MacOS/opencmiss/install/virtual_environments/oclibs_venv_py37_debug/bin/activate
export PYTHONPATH=$PYTHONPATH:/Users/cmiss/jenkins/workspace/OpenCMISS_MacOS/opencmiss/install/lib/python3.7/opencmiss.iron/
make
deactivate
'''
}
else {
sh '''#!/bin/bash
source /Users/cmiss/jenkins/workspace/OpenCMISS_MacOS/opencmiss/install/virtual_environments/oclibs_venv_py37_release/bin/activate
export PYTHONPATH=$PYTHONPATH:/Users/cmiss/jenkins/workspace/OpenCMISS_MacOS/opencmiss/install/lib/python3.7/opencmiss.iron/
make
deactivate
'''
}
}
}
}
}