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
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
...
@@ -17,8 +17,8 @@ BUILD_TARGET=darwin
echo
-e
"
$BLEU
""Getting last MDANSE revision"
"
$NORMAL
"
echo
-e
"
$BLEU
""Getting last MDANSE revision"
"
$NORMAL
"
# Get revision number from git (without trailing newline)
# Get revision number from git (without trailing newline)
REV_NUMBER
=
$(
git rev-
list
--count
HEAD
)
COMMIT_ID
=
$(
git rev-
parse
--long
HEAD
)
echo
-e
"
$BLEU
""
Revision number =
${
REV_NUMBER
}
"
"
$NORMAL
"
echo
-e
"
$BLEU
""
Commit id =
${
COMMIT_ID
}
"
"
$NORMAL
"
# Now build last version and install it in our homebrewed python
# Now build last version and install it in our homebrewed python
echo
-e
"
$BLEU
""Building MDANSE"
"
$NORMAL
"
echo
-e
"
$BLEU
""Building MDANSE"
"
$NORMAL
"
...
...
BuildServer/Darwin/Scripts/run_deploy.sh
View file @
e127b5b6
#!/bin/bash
#!/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
# CONFIGURATION
...
@@ -10,6 +10,10 @@
...
@@ -10,6 +10,10 @@
ROUGE
=
"
\\
033[1;31m"
ROUGE
=
"
\\
033[1;31m"
BLEU
=
"
\\
033[1;34m"
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
`
VERSION_NAME
=
`
sed
-n
's/__version__.*=.*\"\(.*\)\"/\1/p'
MDANSE/__pkginfo__.py
`
if
[[
${
CI_BUILD_REF_NAME
}
=
~ develop
]]
if
[[
${
CI_BUILD_REF_NAME
}
=
~ develop
]]
...
@@ -18,7 +22,7 @@ then
...
@@ -18,7 +22,7 @@ then
then
then
VERSION_NAME
=
${
VERSION_NAME
}
-
"weekly-"
`
date
+%Y-%m-%d
`
VERSION_NAME
=
${
VERSION_NAME
}
-
"weekly-"
`
date
+%Y-%m-%d
`
fi
fi
VERSION_NAME
=
${
VERSION_NAME
}
-
`
git rev-parse
--short
HEAD
`
VERSION_NAME
=
${
VERSION_NAME
}
-
${
COMMIT_ID
}
fi
fi
export
VERSION_NAME
export
VERSION_NAME
...
...
BuildServer/Debian/run_build.sh
View file @
e127b5b6
...
@@ -14,8 +14,8 @@ cd
...
@@ -14,8 +14,8 @@ cd
cd
$CI_PROJECT_DIR
cd
$CI_PROJECT_DIR
# Get revision number from git (without trailing newline)
# Get revision number from git (without trailing newline)
REV_NUMBER
=
$(
git rev-
list
--count
HEAD
)
COMMIT_ID
=
$(
git rev-
parse
--long
HEAD
)
echo
-e
"
$BLEU
""
Revision number =
${
REV_NUMBER
}
<--"
"
$NORMAL
"
echo
-e
"
$BLEU
""
Commit id =
${
COMMIT_ID
}
<--"
"
$NORMAL
"
# Now build last version
# Now build last version
echo
"
$BLEU
""Building MDANSE"
"
$NORMAL
"
echo
"
$BLEU
""Building MDANSE"
"
$NORMAL
"
...
...
BuildServer/Debian/run_deploy.sh
View file @
e127b5b6
...
@@ -11,6 +11,10 @@ export DISTRO=$2
...
@@ -11,6 +11,10 @@ export DISTRO=$2
ROUGE
=
"
\\
033[1;31m"
ROUGE
=
"
\\
033[1;31m"
BLEU
=
"
\\
033[1;34m"
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
`
VERSION_NAME
=
`
sed
-n
's/__version__.*=.*\"\(.*\)\"/\1/p'
MDANSE/__pkginfo__.py
`
if
[[
${
CI_BUILD_REF_NAME
}
=
~ develop
]]
if
[[
${
CI_BUILD_REF_NAME
}
=
~ develop
]]
...
...
BuildServer/Windows/run_build.sh
View file @
e127b5b6
...
@@ -195,8 +195,8 @@ rm pythonlog.txt
...
@@ -195,8 +195,8 @@ rm pythonlog.txt
cd
${
CI_PROJECT_DIR
}
cd
${
CI_PROJECT_DIR
}
# Get revision number from GIT
# Get revision number from GIT
REV_NUMBER
=
$(
git rev-
list
--count
HEAD
)
COMMIT_ID
=
$(
git rev-
parse
--long
HEAD
)
echo
"
Revision number
i
s
$
REV_NUMBER
"
echo
"
Commit
i
d
$
{
COMMIT_ID
}
"
# setup the environment for a visual studio build of MDANSE using microsoft SDK 7.0 and build MDANSE
# setup the environment for a visual studio build of MDANSE using microsoft SDK 7.0 and build MDANSE
echo
"MDANSE setup and build"
echo
"MDANSE setup and build"
...
...
BuildServer/Windows/run_deploy.sh
View file @
e127b5b6
...
@@ -12,6 +12,10 @@ else
...
@@ -12,6 +12,10 @@ else
BUILD_TARGET
=
$1
BUILD_TARGET
=
$1
fi
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
`
VERSION_NAME
=
`
sed
-n
's/__version__.*=.*\"\(.*\)\"/\1/p'
MDANSE/__pkginfo__.py
`
if
[[
${
CI_BUILD_REF_NAME
}
=
~ develop
]]
if
[[
${
CI_BUILD_REF_NAME
}
=
~ develop
]]
...
...
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