forked from conda-forge/staged-recipes
/
build_all
executable file
·28 lines (22 loc) · 1.06 KB
/
build_all
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
#!/usr/bin/env bash
# Set the numpy variable. This isn't used, but conda-build complains if we haven't set it already.
export CONDA_NPY=19
# We only build if we aren't a merged PR (that is, only build for PRs).
if [ -z "$GH_TOKEN" ]; then
# Remove homebrew.
brew remove --force $(brew list)
brew cleanup -s
rm -rf $(brew --cache)
# Install and configure conda environment.
curl -L -O https://raw.githubusercontent.com/pelson/Obvious-CI/master/bootstrap-obvious-ci-and-miniconda.py
python bootstrap-obvious-ci-and-miniconda.py ~/miniconda x64 3 --without-obvci && source ~/miniconda/bin/activate root
conda config --add channels conda-forge
conda config --set show_channel_urls true
conda install --yes --quiet conda-build-all
conda install --yes --quiet conda-forge-build-setup
source run_conda_forge_build_setup
# We don't need to build the example recipe.
rm -rf ./recipes/example
# We just want to build all of the recipes.
conda-build-all ./recipes --matrix-condition "numpy >=1.10" "python >=2.7,<3|>=3.4"
fi