File tree Expand file tree Collapse file tree 11 files changed +29
-8
lines changed Expand file tree Collapse file tree 11 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ addons:
1515 packages :
1616 - libssh2-1-dev
1717 - openssh-server
18+ - rpm
19+ - dpkg
1820install :
1921 - pip install flake8 jinja2
2022 - python setup.py build_ext --inplace
@@ -26,11 +28,14 @@ jobs:
2628 include :
2729 - stage : build_packages
2830 python : 3.6
29- install : skip
31+ install :
32+ - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
3033 script :
3134 - ./docker/build-packages.sh
3235 - sudo chown -R ${USER} *
3336 - ls -ltrh *.{rpm,deb}
37+ - for x in *.rpm; do echo "Package : $x"; rpm -qlp $x; done
38+ - for x in *.deb; do echo "Package : $x"; dpkg-deb -c $x; done
3439 deploy :
3540 - provider : pypi
3641 skip_cleanup : true
Original file line number Diff line number Diff line change 33for x in ` ls -1d docker/{fedora,centos}* ` ; do
44 name=` echo " $x " | awk -F/ ' {print $2}' `
55 dist_num=` echo " $name " | sed -r ' s/[a-z]+([0-9]+)/\1/' `
6+ docker_tag=" parallelssh/ssh2-python:$name "
67 if [[ $dist_num -gt 20 ]]; then
78 dist=" fc${dist_num} "
89 else
910 dist=" el${dist_num} "
1011 fi
11- docker build $x -t $name
12+ docker pull $docker_tag || echo
13+ docker build --cache-from $docker_tag $x -t $name
14+ docker tag $name $docker_tag
15+ docker push $docker_tag
1216 docker run -v " $( pwd) :/src/" " $name " --rpm-dist $dist -s python -t rpm setup.py
1317done
1418
1519for x in ` ls -1d docker/{debian,ubuntu}* ` ; do
1620 name=` echo " $x " | awk -F/ ' {print $2}' | awk -F. ' {print $1}' `
17- docker build $x -t " $name "
21+ docker_tag=" parallelssh/ssh2-python:$name "
22+ docker pull $docker_tag || echo
23+ docker build --cache-from $docker_tag $x -t $name
24+ docker tag $name $docker_tag
25+ docker push $docker_tag
1826 docker run -v " $( pwd) :/src/" " $name " --iteration $name -s python -t deb setup.py
1927done
Original file line number Diff line number Diff line change 11FROM cdrx/fpm-centos:6
22
33RUN yum -y install libssh2-devel python-devel python-setuptools git
4- RUN curl -sLO https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm -f get-pip.py
4+ RUN curl -sLO https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm -f get-pip.py && pip install -U setuptools wheel
Original file line number Diff line number Diff line change 11FROM cdrx/fpm-centos:7
22
33RUN yum -y install libssh2-devel python-devel python-setuptools git
4- RUN curl -sLO https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm -f get-pip.py
4+ RUN curl -sLO https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm -f get-pip.py && pip install -U setuptools wheel
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ FROM cdrx/fpm-debian:7
22
33RUN apt-get -y update
44RUN apt-get -y install python-setuptools python-dev libssh2-1-dev python-pip git
5+ RUN pip install -U setuptools
6+ RUN pip install -U pip wheel
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ FROM cdrx/fpm-debian:8
22
33RUN apt-get -y update
44RUN apt-get -y install python-setuptools python-dev libssh2-1-dev python-pip git
5+ RUN pip install -U setuptools
6+ RUN pip install -U pip wheel
Original file line number Diff line number Diff line change 11FROM cdrx/fpm-fedora:22
22
33RUN yum -y install libssh2-devel python-devel python-setuptools git
4- RUN curl -sLO https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm -f get-pip.py
4+ RUN curl -sLO https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm -f get-pip.py && pip install -U setuptools wheel
Original file line number Diff line number Diff line change 11FROM cdrx/fpm-fedora:23
22
33RUN yum -y install libssh2-devel python-devel python-setuptools git
4- RUN curl -sLO https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm -f get-pip.py
4+ RUN curl -sLO https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm -f get-pip.py && pip install -U setuptools wheel
Original file line number Diff line number Diff line change 11FROM cdrx/fpm-fedora:24
22
33RUN yum -y install libssh2-devel python-devel python-setuptools git
4- RUN curl -sLO https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm -f get-pip.py
4+ RUN curl -sLO https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm -f get-pip.py && pip install -U setuptools wheel
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ FROM cdrx/fpm-ubuntu:14.04
22
33RUN apt-get -y update
44RUN apt-get -y install python-setuptools python-dev libssh2-1-dev python-pip git
5+ RUN pip install -U setuptools
6+ RUN pip install -U pip wheel
You can’t perform that action at this time.
0 commit comments