File tree Expand file tree Collapse file tree 5 files changed +50
-23
lines changed Expand file tree Collapse file tree 5 files changed +50
-23
lines changed Original file line number Diff line number Diff line change 4
4
set -e -x
5
5
6
6
if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
7
+ if [ -z " $TRAVIS_TAG " ]; then
7
8
9
+ python3 ./make_conda_recipe.py || exit 1
8
10
9
- python3 ./make_conda_recipe.py || exit 1
11
+ # Switch to miniconda
12
+ source " $HOME /miniconda/etc/profile.d/conda.sh"
13
+ hash -r
14
+ conda activate base
15
+ conda config --set always_yes yes --set changeps1 no
16
+ conda update -q conda
17
+ conda install conda-build
18
+ conda install anaconda-client
19
+ conda info -a
20
+
21
+ conda config --add channels domdfcoding || exit 1
22
+
23
+ conda config --add channels conda-forge || exit 1
24
+
25
+ conda build conda --output-folder conda/dist --skip-existing
10
26
11
- # Switch to miniconda
12
- source " $HOME /miniconda/etc/profile.d/conda.sh"
13
- hash -r
14
- conda activate base
15
- conda config --set always_yes yes --set changeps1 no
16
- conda update -q conda
17
- conda install conda-build
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 --output-folder conda/dist
27
+ for f in conda/dist/noarch/domdf_python_tools-* .tar.bz2; do
28
+ echo " $f "
29
+ conda install $f || exit 1
30
+ echo " Deploying to Anaconda.org..."
31
+ anaconda -t $ANACONDA_TOKEN upload $f || exit 1
32
+ echo " Successfully deployed to Anaconda.org."
33
+ done
25
34
35
+ else
36
+ echo " Deferring building conda package because this is not a tagged commit"
26
37
else
27
38
echo " Skipping building conda package because this is not the required runtime"
28
39
fi
Original file line number Diff line number Diff line change @@ -5,13 +5,23 @@ set -e -x
5
5
6
6
if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
7
7
8
+ python3 ./make_conda_recipe.py || exit 1
9
+
8
10
# Switch to miniconda
9
11
source " $HOME /miniconda/etc/profile.d/conda.sh"
10
12
hash -r
11
13
conda activate base
12
14
conda config --set always_yes yes --set changeps1 no
15
+ conda update -q conda
16
+ conda install conda-build
13
17
conda install anaconda-client
14
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 --output-folder conda/dist
15
25
16
26
for f in conda/dist/noarch/domdf_python_tools-* .tar.bz2; do
17
27
echo " $f "
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ python:
11
11
install :
12
12
- sudo apt-get update
13
13
14
- - pip install rst2txt
14
+ - pip install rst2txt yolk3k
15
15
- pip install coveralls tox tox-travis
16
16
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
17
17
- bash miniconda.sh -b -p $HOME/miniconda
Original file line number Diff line number Diff line change 2
2
domdf_python_tools
3
3
**********************
4
4
5
+ .. start shields
6
+
5
7
.. image :: https://img.shields.io/travis/com/domdfcoding/domdf_python_tools/master?logo=travis
6
8
:target: https://travis-ci.com/domdfcoding/domdf_python_tools
7
- :alt: Build Status
9
+ :alt: Travis Build Status
8
10
.. image :: https://readthedocs.org/projects/domdf_python_tools/badge/?version=latest
9
11
:target: https://domdf_python_tools.readthedocs.io/en/latest/?badge=latest
10
12
:alt: Documentation Status
@@ -21,8 +23,12 @@ domdf_python_tools
21
23
:target: https://coveralls.io/github/domdfcoding/domdf_python_tools?branch=master
22
24
:alt: Coverage
23
25
.. image :: https://img.shields.io/badge/License-LGPL%20v3-blue.svg
24
- :alt: PyPI - License
26
+ :alt: License
25
27
:target: https://github.com/domdfcoding/domdf_python_tools/blob/master/LICENSE
28
+ .. image :: https://img.shields.io/github/languages/top/domdfcoding/domdf_python_tools
29
+ :alt: GitHub top language
30
+
31
+ .. end shields
26
32
27
33
28
34
Original file line number Diff line number Diff line change @@ -13,23 +13,23 @@ declare -a warnings=(
13
13
E703 E711 E712 E713 E714 E721 W503 W504
14
14
)
15
15
16
- if [ -z " $( git status --porcelain --untracked-files=no) " ] || [ $1 == " -f" ]; then
16
+ if [ -z " $( git status --porcelain --untracked-files=no) " ] || [ " $1 " == " -f" ]; then
17
17
# Working directory clean
18
18
19
19
for error in " ${errors[@]} "
20
20
do
21
21
echo " Correcting $error "
22
22
autopep8 --in-place --select " $error " -a --recursive domdf_python_tools/
23
- flake8 --select " $error " domdf_python_tools/
23
+ >&2 flake8 --select " $error " domdf_python_tools/
24
24
autopep8 --in-place --select " $error " -a --recursive tests/
25
- flake8 --select " $error " tests/
25
+ >&2 flake8 --select " $error " tests/
26
26
27
27
done
28
28
29
29
for warning in " ${warnings[@]} " ; do
30
30
echo " Searching for $warning "
31
- flake8 --select " $warning " domdf_python_tools/
32
- flake8 --select " $warning " tests/
31
+ >&2 flake8 --select " $warning " domdf_python_tools/
32
+ >&2 flake8 --select " $warning " tests/
33
33
done
34
34
35
35
exit 0
You can’t perform that action at this time.
0 commit comments