Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
e127b5b6
Commit
e127b5b6
authored
Mar 07, 2017
by
eric pellegrini
Browse files
The pkginfo is now updated with the current commit id when building MDANSE
parent
1df1ab74
Pipeline
#1490
passed with stages
in 11 minutes and 14 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
BuildServer/Darwin/Scripts/run_build.sh
View file @
e127b5b6
...
...
@@ -17,8 +17,8 @@ BUILD_TARGET=darwin
echo
-e
"
$BLEU
""Getting last MDANSE revision"
"
$NORMAL
"
# Get revision number from git (without trailing newline)
REV_NUMBER
=
$(
git rev-
list
--count
HEAD
)
echo
-e
"
$BLEU
""
Revision number =
${
REV_NUMBER
}
"
"
$NORMAL
"
COMMIT_ID
=
$(
git rev-
parse
--long
HEAD
)
echo
-e
"
$BLEU
""
Commit id =
${
COMMIT_ID
}
"
"
$NORMAL
"
# Now build last version and install it in our homebrewed python
echo
-e
"
$BLEU
""Building MDANSE"
"
$NORMAL
"
...
...
BuildServer/Darwin/Scripts/run_deploy.sh
View file @
e127b5b6
#!/bin/bash
# This script is to package the
nMolDyn
package for Mac OS X
# This script is to package the
MDANSE
package for Mac OS X
#############################
# CONFIGURATION
...
...
@@ -10,6 +10,10 @@
ROUGE
=
"
\\
033[1;31m"
BLEU
=
"
\\
033[1;34m"
# Update the __pkginfo__ file with the current commit
COMMIT_ID
=
$(
git rev-parse
--long
HEAD
)
sed
-i
's/.*__commit__.*/__commit__ = \"${COMMIT_ID}\"/'
MDANSE/__pkginfo__.py
VERSION_NAME
=
`
sed
-n
's/__version__.*=.*\"\(.*\)\"/\1/p'
MDANSE/__pkginfo__.py
`
if
[[
${
CI_BUILD_REF_NAME
}
=
~ develop
]]
...
...
@@ -18,7 +22,7 @@ then
then
VERSION_NAME
=
${
VERSION_NAME
}
-
"weekly-"
`
date
+%Y-%m-%d
`
fi
VERSION_NAME
=
${
VERSION_NAME
}
-
`
git rev-parse
--short
HEAD
`
VERSION_NAME
=
${
VERSION_NAME
}
-
${
COMMIT_ID
}
fi
export
VERSION_NAME
...
...
BuildServer/Debian/run_build.sh
View file @
e127b5b6
...
...
@@ -14,8 +14,8 @@ cd
cd
$CI_PROJECT_DIR
# Get revision number from git (without trailing newline)
REV_NUMBER
=
$(
git rev-
list
--count
HEAD
)
echo
-e
"
$BLEU
""
Revision number =
${
REV_NUMBER
}
<--"
"
$NORMAL
"
COMMIT_ID
=
$(
git rev-
parse
--long
HEAD
)
echo
-e
"
$BLEU
""
Commit id =
${
COMMIT_ID
}
<--"
"
$NORMAL
"
# Now build last version
echo
"
$BLEU
""Building MDANSE"
"
$NORMAL
"
...
...
BuildServer/Debian/run_deploy.sh
View file @
e127b5b6
...
...
@@ -11,6 +11,10 @@ export DISTRO=$2
ROUGE
=
"
\\
033[1;31m"
BLEU
=
"
\\
033[1;34m"
# Update the __pkginfo__ file with the current commit
COMMIT_ID
=
$(
git rev-parse
--long
HEAD
)
sed
-i
's/.*__commit__.*/__commit__ = \"${COMMIT_ID}\"/'
MDANSE/__pkginfo__.py
VERSION_NAME
=
`
sed
-n
's/__version__.*=.*\"\(.*\)\"/\1/p'
MDANSE/__pkginfo__.py
`
if
[[
${
CI_BUILD_REF_NAME
}
=
~ develop
]]
...
...
BuildServer/Windows/run_build.sh
View file @
e127b5b6
...
...
@@ -195,8 +195,8 @@ rm pythonlog.txt
cd
${
CI_PROJECT_DIR
}
# Get revision number from GIT
REV_NUMBER
=
$(
git rev-
list
--count
HEAD
)
echo
"
Revision number
i
s
$
REV_NUMBER
"
COMMIT_ID
=
$(
git rev-
parse
--long
HEAD
)
echo
"
Commit
i
d
$
{
COMMIT_ID
}
"
# setup the environment for a visual studio build of MDANSE using microsoft SDK 7.0 and build MDANSE
echo
"MDANSE setup and build"
...
...
BuildServer/Windows/run_deploy.sh
View file @
e127b5b6
...
...
@@ -12,6 +12,10 @@ else
BUILD_TARGET
=
$1
fi
# Update the __pkginfo__ file with the current commit
COMMIT_ID
=
$(
git rev-parse
--long
HEAD
)
sed
-i
's/.*__commit__.*/__commit__ = \"${COMMIT_ID}\"/'
MDANSE/__pkginfo__.py
VERSION_NAME
=
`
sed
-n
's/__version__.*=.*\"\(.*\)\"/\1/p'
MDANSE/__pkginfo__.py
`
if
[[
${
CI_BUILD_REF_NAME
}
=
~ develop
]]
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment