Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.core
Commits
5f5c0ed6
Commit
5f5c0ed6
authored
Oct 15, 2018
by
André Anjos
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test execution
parent
739ccb3c
Pipeline
#24322
passed with stages
in 29 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
7 deletions
+42
-7
conda/meta.yaml
conda/meta.yaml
+2
-3
conda/run_test.sh
conda/run_test.sh
+40
-4
No files found.
conda/meta.yaml
View file @
5f5c0ed6
...
...
@@ -17,6 +17,7 @@ build:
-
python setup.py sdist --formats=zip
{
%
endif %
}
-
python setup.py install --single-version-externally-managed --record record.txt
-
cp -r doc $SRC_DIR
requirements
:
host
:
...
...
@@ -40,7 +41,7 @@ requirements:
test
:
source_files
:
-
{{
environ.get('SRC_DIR')
}}
/
doc
-
doc
requires
:
-
bob-devel {{ bob_devel }}.*
...
...
@@ -55,10 +56,8 @@ test:
-
{{
name
}}
commands
:
-
worker --help
-
conda inspect linkages -p $PREFIX {{ name }}
# [not win]
-
conda inspect objects -p $PREFIX {{ name }}
# [osx]
-
run_test.sh
about
:
home
:
https://www.idiap.ch/software/beat/
...
...
conda/run_test.sh
View file @
5f5c0ed6
#/usr/bin/env bash
# Checks whether to use "date" or "gdate"
gnudate
()
{
if
hash
gdate 2>/dev/null
;
then
echo
gdate
else
echo date
fi
}
DATE
=
`
gnudate
`
# datetime prefix for logging
log_datetime
()
{
echo
"(
$(
${
DATE
}
+%T.%3N
)
)"
}
# Functions for coloring echo commands
log_info
()
{
echo
-e
"
$(
log_datetime
)
\0
33[1;34m
${
@
}
\0
33[0m"
}
log_error
()
{
echo
-e
"
$(
log_datetime
)
\0
33[1;31mError:
${
@
}
\0
33[0m"
>
&2
}
# Function for running command and echoing results
run_cmd
()
{
log_info
"
$
${
@
}
"
${
@
}
local
status
=
$?
if
[
${
status
}
!=
0
]
;
then
log_error
"Command Failed
\"
${
@
}
\"
"
exit
${
status
}
fi
}
if
[
-z
"
${
BEAT_DOCKER_TESTS
}
"
]
;
then
nosetests
--with-coverage
--cover-package
=
${
PKG_NAME
}
-sv
${
PKG_NAME
}
--exclude
=
".*test_docker.*"
sphinx-build
-aEW
doc sphinx
sphinx-build
-aEb
doctest doc sphinx
run_cmd nosetests
--with-coverage
--cover-package
=
${
PKG_NAME
}
-sv
${
PKG_NAME
}
--exclude
=
".*test_docker.*"
run_cmd worker
--help
run_cmd sphinx-build
-aEW
doc sphinx
run_cmd sphinx-build
-aEb
doctest doc sphinx
else
nosetests
--with-coverage
--cover-package
=
${
PKG_NAME
}
-sv
${
PKG_NAME
}
run_cmd
nosetests
--with-coverage
--cover-package
=
${
PKG_NAME
}
-sv
${
PKG_NAME
}
fi
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