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
74c401fa
Commit
74c401fa
authored
Mar 16, 2018
by
Remi Perenon
Browse files
Modify yaml file to ensure builds and tests are performed in the same stage
parent
246165e2
Pipeline
#3434
passed with stage
in 28 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
BuildServer/Darwin/Scripts/run_build.sh
View file @
74c401fa
...
...
@@ -42,11 +42,4 @@ if [ $status -ne 0 ]; then
exit
$status
fi
/Library/Frameworks/Python.framework/Versions/2.7/bin/python setup.py
install
>>
BuildServer/Darwin/Scripts/build_log.txt 2>&1
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
-e
"
$ROUGE
"
"Failed to install MDANSE"
"
$NORMAL
"
exit
$status
fi
exit
0
\ No newline at end of file
BuildServer/Darwin/Scripts/run_tests.sh
View file @
74c401fa
...
...
@@ -2,18 +2,22 @@
ROUGE
=
"
\\
033[1;31m"
cd
$CI_PROJECT_DIR
export
PYTHONPATH
=
${
CI_PROJECT_DIR
}
/build/lib.macosx-10.6-intel-2.7
# Performs the unit tests
cd
Tests/UnitTests
/Library/Frameworks/Python.framework/Versions/2.7/bin/nosetests
--verbosity
=
3
-P
.
# Exit now if unable to run tests
status
=
$?
if
[
$status
-ne
0
]
;
then
echo
"Failed to extract python"
echo
-e
"
$ROUGE
""One or several unit tests failed"
exit
$status
fi
cd
../..
# Performs the functional tests
cd
Tests/FunctionalTests/Jobs
rm
-rf
Test_
*
/Library/Frameworks/Python.framework/Versions/2.7/bin/python BuildJobTests.py
...
...
@@ -24,6 +28,5 @@ if [ $status -ne 0 ]; then
echo
-e
"
$ROUGE
""One or several functional tests failed"
exit
$status
fi
cd
../../..
exit
0
\ No newline at end of file
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