Commit 5c269581 authored by Remi Perenon's avatar Remi Perenon
Browse files

Test build scripts

parent 78671a1c
Pipeline #3427 failed with stages
in 2 minutes and 27 seconds
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment