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
08ea5d4f
Commit
08ea5d4f
authored
May 11, 2016
by
Jamie Hall
Browse files
Update package.sh
parent
c695decf
Pipeline
#278
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
BuildServer/Darwin/Scripts/package.sh
View file @
08ea5d4f
...
...
@@ -39,8 +39,8 @@ echo "$BLEU""Revision number is -->${REV_NUMBER}<--" "$NORMAL"
# Add current revision number to python source code (will appear in "About..." dialog)
# see http://stackoverflow.com/questions/7648328/getting-sed-error
sed
-i
"/
__version__
/c
\
_
_version__ =
'
${
CI_BUILD_TAG
}
'
"
MDANSE/__pkginfo__.py
sed
-i
"/
__revision__
/c
\
_
_revision__ =
'
${
REV_NUMBER
}
'/"
MDANSE/__pkginfo__.py
sed
-i
''
's/.*
__version__
.*/
__version__ =
\"
${CI_BUILD_TAG}
\"/
'
MDANSE/__pkginfo__.py
sed
-i
''
's/.*
__revision__
.*/
__revision__ =
\"
${REV_NUMBER}
\"/'
MDANSE/__pkginfo__.py
# Now build last version and install it in our homebrewed python
echo
-e
"
$BLEU
""Building MDANSE"
"
$NORMAL
"
...
...
@@ -55,8 +55,8 @@ rm /usr/local/lib/python2.7/site-packages/MDANSE*.egg-info
rm
-rf
/usr/local/lib/python2.7/site-packages/MDANSE
# Build and install MDANSE to the homebrewed python
/usr/local/bin/python setup.py build
&
> BuildServer/Darwin/Scripts/build_log.txt
/usr/local/bin/python setup.py
install
&
>> BuildServer/Darwin/Scripts/build_log.txt
/usr/local/bin/python setup.py build
>
>
BuildServer/Darwin/Scripts/build_log.txt
2>&1
/usr/local/bin/python setup.py
install
>>
BuildServer/Darwin/Scripts/build_log.txt
2>&1
# Performs the unit tests
#cd Tests/UnitTests
...
...
@@ -77,7 +77,7 @@ export DISTUTILS_DEBUG=0
cd
BuildServer/Darwin/Scripts
/usr/local/bin/python build.py py2app
&
>> build_log.txt
/usr/local/bin/python build.py py2app
>>
build_log.txt
2>&1
rc
=
$?
if
[[
$rc
!=
0
]]
;
then
...
...
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