/
.travis.yml
64 lines (50 loc) · 2.65 KB
/
.travis.yml
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
60
61
62
63
64
# 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: xcode6.4
env:
matrix:
- CONFIG=osx_c_compilerclang
- CONFIG=osx_c_compilertoolchain_c
global:
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
- secure: "Qm0Mq1v2l2YJAQC4L94QnVjIpOcrqz2fdbpxNJqsbk3sJkHYWGZRDjPu1vqfxtA/iO2uh68DLZY4voxZ9hZoE3Rs8LB3EdVMeyVyYQCt7NsZJzphnJYrOd7RYCApIS21uMn0U+33pQr4q+MpHD2vWSTq0C2tpWGI6tH6J2uMUIiR0XSO1ECNsTT95xNyft2rGKNjoBivDxDGg2hL4G4iChFwPzFrHkSNicGrx8W5WhKKQf26nl/w6N/iLWFxnPd7yKOoPe6VtRy0RLghqkMWBBAE6zxznZ5fCUGBoJ/U+yjmj7mwKGLVKO4JB/CtB1srpg8agQqEbfKpynmTHOSxnR6zfIllKZKwpg04fKkicPPOosKQpy5xV4Pjhj5BFsizQFIaKtFYMKnrunCcyVR04thoF3lBIJQ16BgF5TKr5FszRIru4cGqx0CoqCKRYaAiH4pXn1Y1L3Lo2pE6iiBPJKRANuUsQi+6DNLRtIexw/S4euSBR2ypaFOZ9O5CnqdjpFYIAymYnE6PAo2Uh8Be9mv8b/nukx/eyakSrGsF2X07gAhenK2FWLgOqKC3+sr4xhzQ0GCX+SthbQhU0z1oE5d+861Mmke4A0YNe7XmItgyK8SaSawNwrKcS8g/R38S3+nDtRXceLlGgpfeRNb4EMdCE5Rf9iI2gdfTWBkKyNM="
before_install:
# Fast finish the PR.
- |
(curl https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/branch2.0/recipe/conda_forge_ci_setup/ff_ci_pr_build.py | \
python - -v --ci "travis" "${TRAVIS_REPO_SLUG}" "${TRAVIS_BUILD_NUMBER}" "${TRAVIS_PULL_REQUEST}") || exit 1
# Remove homebrew.
- |
echo ""
echo "Removing homebrew from Travis CI to avoid conflicts."
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew
chmod +x ~/uninstall_homebrew
~/uninstall_homebrew -fq
rm ~/uninstall_homebrew
install:
# Install Miniconda.
- |
echo ""
echo "Installing a fresh version of Miniconda."
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
# Configure conda.
- |
echo ""
echo "Configuring conda."
source /Users/travis/miniconda3/bin/activate root
conda install --yes --quiet conda-forge::conda-forge-ci-setup=2
setup_conda_rc ./ ./recipe ./.ci_support/${CONFIG}.yaml
source run_conda_forge_build_setup
# compiler cleanup
- |
mangle_compiler ./ ./recipe ./.ci_support/${CONFIG}.yaml
script:
# generate the build number clobber
- make_build_number ./ ./recipe ./.ci_support/${CONFIG}.yaml
- conda build ./recipe -m ./.ci_support/${CONFIG}.yaml --clobber-file ./.ci_support/clobber_${CONFIG}.yaml
- upload_package ./ ./recipe ./.ci_support/${CONFIG}.yaml