Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
b93aeceb
Commit
b93aeceb
authored
Sep 09, 2016
by
eric pellegrini
Browse files
Progresses in gitflow implementation
parent
bdd0084f
Pipeline
#666
canceled with stages
in 2 minutes and 25 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
BuildServer/Darwin/Scripts/run_build.sh
View file @
b93aeceb
...
...
@@ -10,18 +10,7 @@
ROUGE
=
"
\\
033[1;31m"
BLEU
=
"
\\
033[1;34m"
if
[
-n
"
${
RUN_NIGHTLY_BUILD
}
"
]
then
VERSION_NAME
=
"devel"
else
if
[[
${
CI_BUILD_TAG
}
=
~ ^v
([
0-9]+
\.
[
0-9]+
\.
[
0-9]+
)
$
]]
then
VERSION_NAME
=
${
BASH_REMATCH
[1]
}
else
echo
-e
"
$ROUGE
""Invalid version number
${
CI_BUILD_TAG
}
"
"
$NORMAL
"
exit
fi
fi
VERSION_NAME
=
`
python
-c
"execfile('MDANSE/__pkginfo__.py') ; print __version__
`
export
VERSION_NAME
##Select the build target
...
...
BuildServer/Debian/run_build.sh
View file @
b93aeceb
...
...
@@ -11,24 +11,14 @@ export DISTRO=$2
ROUGE
=
"
\\
033[1;31m"
BLEU
=
"
\\
033[1;34m"
if
[
-n
"
${
RUN_NIGHTLY_BUILD
}
"
]
then
VERSION_NAME
=
"devel"
else
if
[[
$CI_BUILD_TAG
=
~ ^v
([
0-9]+
\.
[
0-9]+
\.
[
0-9]+
)
$
]]
;
then
VERSION_NAME
=
${
BASH_REMATCH
[1]
}
else
echo
-e
"
$ROUGE
""Invalid version number
${
CI_BUILD_TAG
}
"
"
$NORMAL
"
exit
fi
fi
##Select the build target
BUILD_TARGET
=
debian
cd
cd
$CI_PROJECT_DIR
VERSION_NAME
=
`
python
-c
"execfile('MDANSE/__pkginfo__.py') ; print __version__
`
# Get revision number from git (without trailing newline)
REV_NUMBER
=
$(
git rev-list
--count
HEAD
)
echo
-e
"
$BLEU
""Revision number =
${
REV_NUMBER
}
<--"
"
$NORMAL
"
...
...
BuildServer/Windows/run_build.sh
View file @
b93aeceb
...
...
@@ -10,19 +10,7 @@ else
BUILD_TARGET
=
$1
fi
if
[
-n
"
${
RUN_NIGHTLY_BUILD
}
"
]
then
VERSION_NAME
=
"devel"
else
echo
${
CI_BUILD_TAG
}
if
[[
${
CI_BUILD_TAG
}
=
~ ^v
([
0-9]+
\.
[
0-9]+
\.
[
0-9]+
)
$
]]
then
VERSION_NAME
=
${
BASH_REMATCH
[1]
}
else
echo
"Invalid version number
${
CI_BUILD_TAG
}
"
exit
fi
fi
VERSION_NAME
=
`
python
-c
"execfile('MDANSE
\_
_pkginfo__.py') ; print __version__
`
if
[
"
$BUILD_TARGET
"
=
"win32"
]
;
then
PYTHON_SUFFIX
=
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment