Skip to content

Commit

Permalink
Provide conda-forge-build-setup boostrap and feedstock level overrides.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Sep 11, 2016
1 parent f97e451 commit 6ccc948
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
9 changes: 7 additions & 2 deletions conda_smithy/templates/appveyor.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,13 @@ install:
- cmd: conda install -c pelson/channel/development --yes --quiet obvious-ci
{%- for channel in channels.get('sources', []) %}
- cmd: conda config --add channels {{ channel }}{% endfor %}
- cmd: conda install -n root --quiet --yes conda-forge-build-setup
- cmd: run_conda_forge_build_setup

# Provide an override option for conda-forge-build-setup.
# Also allow the global conda-forge-build-setup to bootstrap itself.
- cmd: if exist .\{{ recipe_dir }}\run_conda_forge_build_setup_win.bat echo Overriding global conda-forge-build-setup for local copy.
- cmd: if exist .\{{ recipe_dir }}\run_conda_forge_build_setup_win.bat .\{{ recipe_dir }}\run_conda_forge_build_setup_win
- cmd: if not exist .\{{ recipe_dir }}\run_conda_forge_build_setup_win.bat conda install --yes --quiet conda-forge-build-setup
- cmd: if not exist .\{{ recipe_dir }}\run_conda_forge_build_setup_win.bat run_conda_forge_build_setup

# Skip .NET project specific build phase.
build: off
Expand Down
12 changes: 10 additions & 2 deletions conda_smithy/templates/run_docker_build.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,16 @@ echo "$config" > ~/.condarc
# A lock sometimes occurs with incomplete builds. The lock file is stored in build_artefacts.
conda clean --lock
conda install --yes --quiet conda-forge-build-setup
source run_conda_forge_build_setup
# Provide an override option for conda-forge-build-setup.
# Also allow the global conda-forge-build-setup to bootstrap itself.
if [ -f /recipe_root/run_conda_forge_build_setup_linux ]
then
echo "Overriding global conda-forge-build-setup for local copy."
source /recipe_root/run_conda_forge_build_setup_linux
else
conda install --yes --quiet conda-forge-build-setup
source run_conda_forge_build_setup
fi
{% if build_setup %}
{{ build_setup }}{% endif -%}
Expand Down
13 changes: 11 additions & 2 deletions conda_smithy/templates/travis.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,17 @@ install:
conda config --add channels {{ channel }}
{%- endfor %}
conda config --set show_channel_urls true
conda install --yes --quiet conda-forge-build-setup
source run_conda_forge_build_setup

# Provide an override option for conda-forge-build-setup.
# Also allow the global conda-forge-build-setup to bootstrap itself.
if [ -f recipe/run_conda_forge_build_setup_osx ]
then
echo "Overriding global conda-forge-build-setup for local copy."
source recipe/run_conda_forge_build_setup_osx
else
conda install --yes --quiet conda-forge-build-setup
source run_conda_forge_build_setup
fi

script:
- conda build ./{{ recipe_dir }}
Expand Down

0 comments on commit 6ccc948

Please sign in to comment.