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