Commit 4283c53e authored by eric pellegrini's avatar eric pellegrini
Browse files

advances in gitlab-gitflow integration

parent 641033bd
Pipeline #917 failed with stages
in 2 minutes and 1 second
......@@ -11,11 +11,10 @@ export DISTRO=$2
ROUGE="\\033[1;31m"
BLEU="\\033[1;34m"
VERSION_NAME=`sed -n "sed -n 's/__version__.*=.*\"\(.*\)\"/\1/p' __pkginfo__.py" MDANSE/__pkginfo__.py`
if [ -n "${CI_BUILD_REF_NAME}" ]
then
VERSION_NAME="devel"
else
VERSION_NAME=`sed -n "sed -n 's/__version__.*=.*\"\(.*\)\"/\1/p' __pkginfo__.py" MDANSE/__pkginfo__.py`
VERSION_NAME=${VERSION_NAME}-${CI_BUILD_REF}
fi
##Select the build target
......
#!/bin/bash
ROUGE="\\033[1;31m"
cd $CI_PROJECT_DIR
export PYTHONPATH=${CI_PROJECT_DIR}/build/lib.linux-x86_64-2.7
......@@ -7,12 +9,21 @@ export PYTHONPATH=${CI_PROJECT_DIR}/build/lib.linux-x86_64-2.7
# Performs the unit tests
cd Tests/UnitTests
nosetests --verbosity=3 -P .
echo "test=$?"
# Exit now if unable to run tests
if [ $? -ne 0 ]; then
status = $?
echo -e "$ROUGE""One or several unit tests failed"
exit status
fi
cd ../..
# Performs the functional tests
cd Tests/FunctionalTests/Jobs
python BuildJobTests.py
nosetests --verbosity=3 --exe -P .
echo "test=$?"
if [ $? -ne 0 ]; then
status = $?
echo -e "$ROUGE""One or several functional tests failed"
exit status
fi
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