-
-
Notifications
You must be signed in to change notification settings - Fork 187
/
Copy pathtravis.yml.tmpl
59 lines (51 loc) · 1.69 KB
/
travis.yml.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{%- macro matrix_env(matrix_item) -%}
{% for dep_name, version in matrix_item -%}
{{ dep_name }}={{ version }}{% if not loop.last %} {% endif %}
{%- endfor %}
{%- endmacro -%}
# This file was generated automatically from conda-smithy. To update this configuration,
# update the conda-forge.yml and/or the recipe/meta.yaml.
language: generic
os: osx
osx_image: beta-xcode6.1
{% block env -%}
{% if matrix[0] or travis.secure -%}
env:
{%- if matrix[0] %}
matrix:
{% for case in matrix %}
- {{ matrix_env(case) }}
{%- endfor %}
{%- endif %}
{%- if travis.secure %}
global:
{%- for name, hashed_secure in travis.secure | dictsort %}
# The {{ name }} secure variable. This is defined canonically in conda-forge.yml.
- secure: "{{ hashed_secure }}"
{%- endfor %}
{%- endif %}
{%- endif %}
{% endblock %}
before_install:
# Remove homebrew.
- brew remove --force $(brew list)
- brew cleanup -s
- rm -rf $(brew --cache)
install:
- |
MINICONDA_URL="https://repo.continuum.io/miniconda"
MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh"
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"
bash $MINICONDA_FILE -b
source /Users/travis/miniconda3/bin/activate root
{%- for channel in channels.get('sources', []) %}
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
script:
- conda build ./{{ recipe_dir }}
{% for owner, channel in channels['targets'] %}
- upload_or_check_non_existence ./{{ recipe_dir }} {{ owner }} --channel={{ channel }}
{% endfor %}