|
2 | 2 |
|
3 | 3 | set -e -x
|
4 | 4 |
|
5 |
| -python3 ./make_conda_recipe.py || exit 1 |
6 |
| - |
7 |
| -# Switch to miniconda |
8 |
| -source "$HOME/miniconda/etc/profile.d/conda.sh" |
9 |
| -hash -r |
10 |
| -conda config --set always_yes yes --set changeps1 no |
11 |
| -conda update -q conda |
12 |
| -conda install conda-build |
13 |
| -conda info -a |
14 |
| -conda config --add channels domdfcoding || exit 1 |
15 |
| -conda config --add channels conda-forge || exit 1 |
16 |
| -conda build conda --output-folder conda/dist |
17 |
| - |
18 |
| - |
19 |
| -for f in conda/dist/noarch/domdf_python_tools-*.tar.bz2; do |
20 |
| - echo "$f" |
21 |
| - conda install $f || exit 1 |
22 |
| - if [ -z "$TRAVIS_TAG" ]; then |
23 |
| - echo "Skipping deploy because this is not a tagged commit" |
24 |
| - else |
25 |
| - if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then |
26 |
| - echo "Deploying to Anaconda.org..." |
27 |
| - anaconda -t $ANACONDA_TOKEN upload $f || exit 1 |
28 |
| - echo "Successfully deployed to Anaconda.org." |
| 5 | +if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then |
| 6 | + |
| 7 | + |
| 8 | + python3 ./make_conda_recipe.py || exit 1 |
| 9 | + |
| 10 | + # Switch to miniconda |
| 11 | + source "$HOME/miniconda/etc/profile.d/conda.sh" |
| 12 | + hash -r |
| 13 | + conda config --set always_yes yes --set changeps1 no |
| 14 | + conda update -q conda |
| 15 | + conda install conda-build |
| 16 | + conda info -a |
| 17 | + conda config --add channels domdfcoding || exit 1 |
| 18 | + conda config --add channels conda-forge || exit 1 |
| 19 | + conda build conda --output-folder conda/dist |
| 20 | + |
| 21 | + for f in conda/dist/noarch/domdf_python_tools-*.tar.bz2; do |
| 22 | + echo "$f" |
| 23 | + conda install $f || exit 1 |
| 24 | + if [ -z "$TRAVIS_TAG" ]; then |
| 25 | + echo "Skipping deploy because this is not a tagged commit" |
29 | 26 | else
|
30 |
| - echo "Skipping deploy because this is not the required runtime" |
| 27 | + if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then |
| 28 | + echo "Deploying to Anaconda.org..." |
| 29 | + anaconda -t $ANACONDA_TOKEN upload $f || exit 1 |
| 30 | + echo "Successfully deployed to Anaconda.org." |
| 31 | + else |
| 32 | + echo "Skipping deploy because this is not the required runtime" |
| 33 | + fi |
31 | 34 | fi
|
32 |
| - fi |
33 |
| -done |
| 35 | + done |
| 36 | + |
| 37 | +else |
| 38 | + echo "Skipping building conda package because this is not the required runtime" |
| 39 | +fi |
34 | 40 |
|
35 | 41 | exit 0
|
0 commit comments