Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
ebf878f8
Commit
ebf878f8
authored
6 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Testing jenkins for MPI
parent
02a62f77
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#960
failed
6 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.sh
+27
-22
27 additions, 22 deletions
build.sh
with
27 additions
and
22 deletions
build.sh
+
27
−
22
View file @
ebf878f8
...
...
@@ -2,22 +2,27 @@
# Make a directory in /tmp/OpenFPM_pdata
echo
"Directory:
$1
"
echo
"OS Type:
$2
"
echo
"OS:
$3
"
echo
"make target:
$4
"
echo
"compilation type:
$5
"
echo
"Branch name:
$6
"
workspace
=
$1
hostname
=
$(
hostname
)
target
=
$3
comp_type
=
$4
branch
=
$5
echo
"Directory:
$workspace
"
echo
"OS Type:
$hostname
"
echo
"make target:
$target
"
echo
"compilation type:
$comp_type
"
echo
"Branch name:
$branch
"
exit
1
if
[
x
"
$
3
"
==
x
"ubuntu"
]
;
then
if
[
x
"
$
hostname
"
==
x
"ubuntu"
]
;
then
# rm -rf $HOME/openfpm_dependencies/openfpm_pdata/$6/*
# ./script/install_MPI.sh $HOME/openfpm_dependencies/openfpm_pdata/$6/ 8
export
PATH
=
"
$HOME
/openfpm_dependencies/openfpm_pdata/
$6
/MPI/bin/:
$PATH
"
fi
#if [ x"$
3
" == x"osx" ]; then
#if [ x"$
hostname
" == x"osx" ]; then
# rm -rf $HOME/openfpm_dependencies/openfpm_pdata/$6/OPENBLAS
#fi
...
...
@@ -37,7 +42,7 @@ fi
mkdir
src/config
mkdir
openfpm_numerics/src/config
if
[
"
$
2
"
==
"gin"
]
if
[
"
$
hostname
"
==
"gin"
]
then
echo
"Compiling on gin
\n
"
...
...
@@ -57,12 +62,12 @@ then
export
PATH
=
"/usr/local/binutils/bin/:
$PATH
"
mkdir
$HOME
/
$branch
if
[
x
"
$
5
"
==
x
"full"
]
;
then
if
[
x
"
$
comp_type
"
==
x
"full"
]
;
then
CC
=
gcc-4.9.2
CXX
=
g++-4.9.2
FC
=
gfortran-4.9.2
F77
=
gfortran-4.9.2 ./install
-i
$HOME
/
$branch
-s
-c
"--prefix=/home/jenkins/openfpm_install"
echo
"Moving environment variable"
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$branch
source
$HOME
/openfpm_vars_
$branch
elif
[
x
"
$
4
"
==
x
"numerics"
]
;
then
elif
[
x
"
$
comp_type
"
==
x
"numerics"
]
;
then
branch
=
$(
git ls-remote
--heads
origin |
grep
$(
git rev-parse HEAD
)
|
cut
-d
/
-f
3
)
CC
=
gcc-4.9.2
CXX
=
g++-4.9.2
FC
=
gfortran-4.9.2
F77
=
gfortran-4.9.2 ./install
-i
$HOME
/
$branch
-m
-s
-c
"--prefix=/home/jenkins/openfpm_install"
echo
"Moving environment variable"
...
...
@@ -78,17 +83,17 @@ then
fi
if
[
$?
-ne
0
]
;
then
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
2
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
hostname
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
exit
1
;
fi
if
[
$?
-ne
0
]
;
then
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
2
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
hostname
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
exit
1
;
fi
elif
[
"
$
2
"
==
"taurus"
]
elif
[
"
$
hostname
"
==
"taurus"
]
then
echo
"Compiling on taurus"
...
...
@@ -107,7 +112,7 @@ then
if
[
$?
-ne
0
]
;
then
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
2
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
hostname
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
exit
1
;
fi
else
...
...
@@ -116,7 +121,7 @@ else
source
~/.bashrc
installation_dir
=
""
if
[
x
"
$
2
"
==
x
"sbalzarini-mac-15"
]
;
then
if
[
x
"
$
hostname
"
==
x
"sbalzarini-mac-15"
]
;
then
installation_dir
=
"--prefix=/Users/jenkins/openfpm_install"
else
installation_dir
=
"--prefix=
$HOME
/openfpm_install/
$branch
"
...
...
@@ -127,20 +132,20 @@ else
chmod
600
$HOME
/.ssh/config
mkdir
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
if
[
x
"
$
5
"
==
x
"full"
]
;
then
if
[
x
"
$
comp_type
"
==
x
"full"
]
;
then
echo
"Installing with: ./install -i
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
-s -c
\"
$installation_dir
\"
"
./install
-i
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
-s
-c
"
$installation_dir
"
if
[
$?
-ne
0
]
;
then
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
2
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
hostname
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
exit
1
;
fi
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$branch
source
$HOME
/openfpm_vars_
$branch
elif
[
x
"
$
4
"
==
x
"numerics"
]
;
then
elif
[
x
"
$
comp_type
"
==
x
"numerics"
]
;
then
branch
=
$(
git ls-remote
--heads
origin |
grep
$(
git rev-parse HEAD
)
|
cut
-d
/
-f
3
)
./install
-i
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
-m
-s
-c
"
$installation_dir
"
if
[
$?
-ne
0
]
;
then
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
2
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
hostname
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
exit
1
;
fi
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$branch
...
...
@@ -150,7 +155,7 @@ else
echo
"Installing with: ./install -i
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
-m -s -c
\"
$installation_dir
--no-recursion
\"
"
./install
-i
$HOME
/openfpm_dependencies/openfpm_pdata/
$branch
-m
-s
-c
"
$installation_dir
--no-recursion"
if
[
$?
-ne
0
]
;
then
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
2
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
hostname
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
exit
1
;
fi
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$branch
...
...
@@ -159,7 +164,7 @@ else
fi
if
[
$?
-ne
0
]
;
then
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
2
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$
hostname
failed to complete the openfpm_pdata test
\"
}] }"
https://hooks.slack.com/services/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
exit
1
;
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment