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
5c269581
Commit
5c269581
authored
Mar 16, 2018
by
Remi Perenon
Browse files
Test build scripts
parent
78671a1c
Pipeline
#3427
failed with stages
in 2 minutes and 27 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
BuildServer/Darwin/Scripts/run_build.sh
View file @
5c269581
...
...
@@ -36,14 +36,14 @@ rm -rf /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pack
# Build and install MDANSE to the homebrewed python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python setup.py build
>>
BuildServer/Darwin/Scripts/build_log.txt 2>&1
status
=
$?
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
$ROUGE
"
"Failed to build MDANSE"
"
$NORMAL
"
exit
$status
fi
/Library/Frameworks/Python.framework/Versions/2.7/bin/python setup.py
install
>>
BuildServer/Darwin/Scripts/build_log.txt 2>&1
status
=
$?
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
$ROUGE
"
"Failed to install MDANSE"
"
$NORMAL
"
exit
$status
...
...
BuildServer/Darwin/Scripts/run_tests.sh
View file @
5c269581
...
...
@@ -6,7 +6,7 @@ ROUGE="\\033[1;31m"
cd
Tests/UnitTests
/Library/Frameworks/Python.framework/Versions/2.7/bin/nosetests
--verbosity
=
3
-P
.
# Exit now if unable to run tests
status
=
$?
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
"Failed to extract python"
echo
-e
"
$ROUGE
""One or several unit tests failed"
...
...
@@ -19,7 +19,7 @@ rm -rf Test_*
/Library/Frameworks/Python.framework/Versions/2.7/bin/python BuildJobTests.py
/Library/Frameworks/Python.framework/Versions/2.7/bin/nosetests
--verbosity
=
3
--exe
Test_
*
.py
status
=
$?
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
$ROUGE
""One or several functional tests failed"
exit
$status
...
...
BuildServer/Debian/run_build.sh
View file @
5c269581
...
...
@@ -24,7 +24,7 @@ echo -e "$BLEU""Commit id = ${COMMIT_ID}<--" "$NORMAL"
echo
"
$BLEU
""Building MDANSE"
"
$NORMAL
"
python setup.py build
status
=
$?
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
"Failed to build MDANSE"
exit
$status
...
...
BuildServer/Debian/run_tests.sh
View file @
5c269581
...
...
@@ -10,8 +10,8 @@ export PYTHONPATH=${CI_PROJECT_DIR}/build/lib.linux-x86_64-2.7
cd
Tests/UnitTests
nosetests
--verbosity
=
3
-P
.
# Exit now if unable to run tests
status
=
$?
if
[
$?
-ne
0
]
;
then
status
=
$?
echo
-e
"
$ROUGE
""One or several unit tests failed"
exit
$status
fi
...
...
@@ -23,7 +23,7 @@ rm -rf Test_*
python BuildJobTests.py
nosetests
--verbosity
=
3
--exe
Test_
*
.py
status
=
$?
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
$ROUGE
""One or several functional tests failed"
exit
$status
...
...
BuildServer/Windows/run_build.sh
View file @
5c269581
...
...
@@ -61,7 +61,7 @@ echo "Extracting python ${PYTHON_MSI_WIN} in ${TARGET_DIR}"
cmd /c
"msiexec /L* pythonlog.txt /qn /a
${
PYTHON_MSI_WIN
}
TARGETDIR=
${
TARGET_DIR
}
"
# Exit now if something goes wrong
status
=
$?
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
"Failed to extract python"
exit
$status
...
...
@@ -210,7 +210,7 @@ cd ${SCRIPT_DIR}
cmd /V:ON /E:ON /C
"setup_and_build.bat"
"
${
CI_PROJECT_DIR_WIN
}
"
"
${
TARGET_DIR
}
"
${
MSVC_BUILD_TARGET
}
# Exit now if unable to build
status
=
$?
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
"Failed to build MDANSE"
exit
$status
...
...
BuildServer/Windows/run_tests.sh
View file @
5c269581
...
...
@@ -17,7 +17,7 @@ echo "Running tests"
cmd /V:ON /E:ON /C
"run_tests.bat"
"
${
TARGET_DIR
}
"
"
${
CI_PROJECT_DIR_WIN
}
"
# Exit now if unable to run tests
status
=
$?
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
"Failed to extract python"
echo
"One or several unit tests failed"
...
...
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