Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Charles Ferguson
timer
Commits
6873ae22
Commit
6873ae22
authored
Jul 31, 2016
by
Charles Ferguson
Browse files
Updates to CI
parent
80859e38
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
.gitignore
.gitignore
+2
-0
scripts/bootstrap-env
scripts/bootstrap-env
+1
-1
scripts/test
scripts/test
+8
-1
No files found.
.gitignore
View file @
6873ae22
...
...
@@ -5,4 +5,6 @@ venv
venv3
.coverage
htmlcov
cover
coverage.xml
nosetests.xml
scripts/bootstrap-env
View file @
6873ae22
...
...
@@ -22,7 +22,7 @@ function normalize() {
function
usage
()
{
script_name
=
$(
basename
"
${
BASH_SOURCE
[0]
}
"
)
echo
"Usage:
$script_name
[-v] <environment> <requirements>
echo
"Usage:
$script_name
[-3]
[-v] <environment> <requirements>
Script for configuring and updating a virtualenv based Python environment.
...
...
scripts/test
View file @
6873ae22
...
...
@@ -24,12 +24,19 @@ fi
cd
"
$ROOT
"
source
"
${
VENV_DIR
}
/bin/activate"
||
exit
1
# Clear out any previous coverage data.
if
[
-f
.coverage
]
;
then
rm
-f
.coverage
fi
# Run some rudimentary tests on the code
echo
'>>> Running tests'
passed
=
0
failed
=
0
for
test
in
*
_test.py
;
do
if
"
$PYTHON_TOOL
"
"
$test
"
-v
;
then
if
"
$PYTHON_TOOL
"
"
$test
"
-v
\
--with-coverage
--cover-branches
--cover-html
--cover-xml
;
then
passed
=
$((
$passed
+
1
))
else
failed
=
$((
$failed
+
1
))
...
...
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