Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.cmdline
Commits
043aef51
Commit
043aef51
authored
Feb 19, 2019
by
André Anjos
💬
Browse files
[conda] Allow package to be tested outside of source checkout (see
bob/bob.devtools#5
)
parent
edaa7642
Pipeline
#27262
failed with stage
in 6 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
conda/meta.yaml
View file @
043aef51
{
%
set name = 'beat.cmdline' %
}
{
%
set project_dir = environ.get('RECIPE_DIR') + '/..' %
}
package
:
name
:
{{
name
}}
...
...
@@ -23,11 +22,15 @@ build:
run_exports
:
-
{{
pin_subpackage(name)
}}
script
:
-
cd {{
project_dir
}}
-
cd {{
environ.get('RECIPE_DIR') + '/..'
}}
{
%
if environ.get('BUILD_EGG') %
}
-
python setup.py sdist --formats=zip
{
%
endif %
}
-
python setup.py install --single-version-externally-managed --record record.txt
# installs the documentation source, readme to share/doc so it is available
# during test time
-
install -d "${PREFIX}/share/doc/{{ name }}"
-
cp -R README.rst doc "${PREFIX}/share/doc/{{ name }}/"
requirements
:
host
:
...
...
@@ -74,9 +77,9 @@ test:
-
beat plotterparameters --help
-
beat toolchains --help
-
beat experiments --help
-
nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
-
sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
-
sphinx-build -aEb doctest
{{ project_dir
}}/doc sphinx
-
sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc sphinx
-
if [ -n "${CI_PROJECT_DIR}" ]; then mv sphinx "${CI_PROJECT_DIR}/"; fi
-
sphinx-build -aEb doctest
${PREFIX}/share/doc/{{ name
}}/doc sphinx
-
conda inspect linkages -p $PREFIX {{ name }}
# [not win]
-
conda inspect objects -p $PREFIX {{ name }}
# [osx]
...
...
@@ -85,3 +88,4 @@ about:
license
:
AGPLv3
summary
:
Command-line client for the BEAT platform
license_family
:
AGPL
license_file
:
../LICENSE.AGPL
Write
Preview
Supports
Markdown
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