forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_feedstocks
executable file
·51 lines (40 loc) · 1.41 KB
/
create_feedstocks
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
#!/usr/bin/env bash
set -e
set -x
# Ensure we are on the latest commit
# of the branch where we are converting
# recipes from. Currently this is `master`.
git checkout "${TRAVIS_BRANCH}"
# 2 core available on Travis CI Linux workers: https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
# CPU_COUNT is passed through conda build: https://github.com/conda/conda-build/pull/1149
export CPU_COUNT=2
export PYTHONUNBUFFERED=1
# Install Miniconda.
echo ""
echo "Installing a fresh version of Miniconda."
curl -L https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > ~/miniconda.sh
bash ~/miniconda.sh -b -p ~/miniconda
(
source ~/miniconda/bin/activate root
# Configure conda.
echo ""
echo "Configuring conda."
conda config --set show_channel_urls true
conda config --set auto_update_conda false
conda config --set add_pip_as_python_dependency false
conda config --add channels conda-forge
unset conda
conda update -n root --yes --quiet conda conda-env
)
source ~/miniconda/bin/activate root
conda install --yes --quiet conda-forge-ci-setup=1.* conda-smithy=3.* conda-forge-pinning git=2.12.2
conda info
conda config --get
set +x
mkdir -p ~/.conda-smithy
echo $TRAVIS_TOKEN > ~/.conda-smithy/travis.token
set -x
python .travis_scripts/create_feedstocks.py || {
python .travis_scripts/trigger_travis_build.py "conda-forge/staged-recipes";
exit 1;
};