Commit 164f1f37edd3c2520f4773be7f86c1b7305c5aad
1 parent
203de612
Exists in
master
and in
39 other branches
Send package to packagecloud
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
ci/build_rpm.sh
1 | 1 | #!/bin/bash |
2 | 2 | |
3 | +if [ "$TRAVIS_BRANCH" != "ci-package" ]; then | |
4 | + exit 0; | |
5 | +fi | |
6 | + | |
3 | 7 | python setup.py sdist |
4 | 8 | |
5 | 9 | sudo apt-get install rinse |
... | ... | @@ -17,3 +21,9 @@ sudo cp ci/softwarepublico.key /tmp/centos-7/etc/yum.repos.d/ |
17 | 21 | sudo chroot /tmp/centos-7/ yum install rpm-build -y |
18 | 22 | sudo chroot /tmp/centos-7/ yum install python-virtualenv colab-deps -y |
19 | 23 | sudo HOME=/root chroot /tmp/centos-7/ rpmbuild -ba /root/rpmbuild/SPECS/colab.spec |
24 | + | |
25 | +# Send to packagecloud | |
26 | + | |
27 | +gem install package_cloud | |
28 | +PACKAGE_PATH=`sudo find /tmp/centos-7/root/rpmbuild/RPMS/noarch/ -name "colab*.rpm"` | |
29 | +package_cloud push seocam/colab-$TRAVIS_BRANCH/el/7 $PACKAGE_PATH | ... | ... |