-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline-functionaltests-gnulinux.txt
134 lines (133 loc) · 7.15 KB
/
pipeline-functionaltests-gnulinux.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
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
parallel 'Ubuntu 16.04': {
node('Ubuntu_16.04_bioeng49') {
ws ('/home/cmiss/Jenkins/workspace/OpenCMISS_GNULinux') {
stage('Ubuntu 16.04 Prepare') {
sh 'mkdir -p opencmiss'
}
stage('Ubuntu 16.04 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('Ubuntu 16.04 Configure Libraries') {
dir('./setup-build') {
if(params.BUILD_DEBUG) {
sh 'cmake -DOPENCMISS_ROOT=../opencmiss -DOPENCMISS_LIBRARIES=iron -DOPENCMISS_CONFIG_BUILD_TYPE=Debug ../setup'
}
if(params.BUILD_RELEASE) {
sh 'cmake -DOPENCMISS_ROOT=../opencmiss -DOPENCMISS_LIBRARIES=iron -DOPENCMISS_CONFIG_BUILD_TYPE=Release ../setup'
}
}
}
stage('Ubuntu 16.04 Make Libraries') {
dir('./setup-build') {
sh 'make'
}
}
stage('Ubuntu 16.04 Configure Tests') {
dir('./test_framework-build') {
if(params.BUILD_RELEASE) {
sh '''#!/bin/bash
source /home/cmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/virtual_environments/oclibs_venv_py37_release/bin/activate
export PYTHONPATH=$PYTHONPATH:/home/cmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/lib/python3.7/opencmiss.iron/
cmake -DOpenCMISSLibs_DIR=/home/cmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install -DTEST_DB_REPO_URL=${DATABASE_URL} -DTEST_DB_REPO_BRANCH=${DATABASE_BRANCH} -DTEST_DB=test_db/tests -DOPENCMISS_CONFIG_BUILD_TYPE=Release ../test_framework
deactivate
'''
}
if(params.BUILD_DEBUG) {
sh '''#!/bin/bash
source /home/cmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/virtual_environments/oclibs_venv_py37_release/bin/activate
export PYTHONPATH=$PYTHONPATH:/home/cmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/lib/python3.7/opencmiss.iron/
cmake -DOpenCMISSLibs_DIR=/home/cmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install -DTEST_DB_REPO_URL=${DATABASE_URL} -DTEST_DB_REPO_BRANCH=${DATABASE_BRANCH} -DTEST_DB=test_db/tests -DOPENCMISS_CONFIG_BUILD_TYPE=Debug ../test_framework
deactivate
'''
}
}
}
stage('Ubuntu 16.04 Make Tests') {
dir('./test_framework-build') {
if(params.BUILD_RELEASE) {
sh '''#!/bin/bash
source /home/cmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/virtual_environments/oclibs_venv_py37_release/bin/activate
export PYTHONPATH=$PYTHONPATH:/home/cmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/lib/python3.7/opencmiss.iron/
make
deactivate
'''
}
if(params.BUILD_DEBUG) {
sh '''#!/bin/bash
source /home/cmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/virtual_environments/oclibs_venv_py37_debug/bin/activate
export PYTHONPATH=$PYTHONPATH:/home/cmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/lib/python3.7/opencmiss.iron/
make
deactivate
'''
}
}
}
}
}
}, 'Ubuntu 14.04': {
node('1034_Ubuntu') {
ws ('/home/opencmiss/Jenkins/workspace/OpenCMISS_GNULinux') {
stage('Ubuntu 14.04 Prepare') {
sh 'mkdir -p opencmiss'
}
stage('Ubuntu 14.04 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('Ubuntu 14.04 Configure Libraries') {
dir('./setup-build') {
if(params.BUILD_RELEASE) {
sh 'cmake -DOPENCMISS_ROOT=../opencmiss -DOPENCMISS_LIBRARIES=iron -DOPENCMISS_CONFIG_BUILD_TYPE=Release ../setup'
}
if(params.BUILD_DEBUG) {
sh 'cmake -DOPENCMISS_ROOT=../opencmiss -DOPENCMISS_LIBRARIES=iron -DOPENCMISS_CONFIG_BUILD_TYPE=Debug ../setup'
}
}
}
stage('Ubuntu 14.04 Make Libraries') {
dir('./setup-build') {
sh 'make'
}
}
stage('Ubuntu 14.04 Configure Tests') {
dir('./test_framework-build') {
if(params.BUILD_RELEASE) {
sh 'cmake -DOpenCMISSLibs_DIR=/home/opencmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install -DTEST_DB_REPO_URL=${DATABASE_URL} -DTEST_DB_REPO_BRANCH=${DATABASE_BRANCH} -DTEST_DB=test_db/tests -DOPENCMISS_CONFIG_BUILD_TYPE=Release ../test_framework'
}
if(params.BUILD_DEBUG) {
sh 'cmake -DOpenCMISSLibs_DIR=/home/opencmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install -DTEST_DB_REPO_URL=${DATABASE_URL} -DTEST_DB_REPO_BRANCH=${DATABASE_BRANCH} -DTEST_DB=test_db/tests -DOPENCMISS_CONFIG_BUILD_TYPE=Debug ../test_framework'
}
}
}
stage('Ubuntu 14.04 Make Tests') {
dir('./test_framework-build') {
if(params.BUILD_RELEASE) {
sh '''#!/bin/bash
source /home/opencmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/virtual_environments/oclibs_venv_py27_release/bin/activate
export PYTHONPATH=$PYTHONPATH:/home/opencmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/lib/python2.7/opencmiss.iron/
make
deactivate
'''
}
if(params.BUILD_DEBUG) {
sh '''#!/bin/bash
source /home/opencmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/virtual_environments/oclibs_venv_py27_debug/bin/activate
export PYTHONPATH=$PYTHONPATH:/home/opencmiss/Jenkins/workspace/OpenCMISS_GNULinux/opencmiss/install/lib/python2.7/opencmiss.iron/
make
deactivate
'''
}
}
}
}
}
}