Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
travis: push i3 autobuild packages to balto instead of bintray (#4345)
Browse files Browse the repository at this point in the history
related to i3/i3#4340
  • Loading branch information
stapelberg committed Feb 13, 2021
1 parent 5df0b4b commit 521949b
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 98 deletions.
26 changes: 6 additions & 20 deletions .travis.yml
Expand Up @@ -22,6 +22,7 @@ env:
- secure: "uJuuefmnJUuEH15ZD8xQilibx7EeBvMHBLoIZ8bgGHeleEImBD0XbD1ypvhYJKpviOmw5BkZmc9bVO8DGDEHYbSlIa2xDlF6vGrwgCEaxcMIhOAhv+dW9C/maJVieLOEPM01/fK2qdKESZaLvlopkWmxZwDyMObI9L7AMW9zQD8=" # BINTRAY_USER
- secure: "L3aPSNLySPXtWCW+xf8h/AAdquwNgxyTQpYOwexJmTPav82Qx8uQlp1yJkUmt+a+FLZDFfQeMivaHq0311RvuQVmkAJx49DjaddrwqOJut2UPsoVDn1WeuAcSHIXOq/0H+zgFMr/PGY0HXIsw1mTMhgheGJNqg09BvYWROCEAcA=" # BINTRAY_KEY
- secure: "sBMVn4C/WRWgoAytEFGx4CC5O55Q63h02AcuBnb1jXcBm0RenoBpzUPtxSseJwDPUA1o/UkuEDDjm3PosT5NF+dvED01VDFMsPVE11K0u6+avYy3jYXqyUEDW3G2o6Wo/2aqNjmd++8jskBdS9+Cx9gaFbgxfzSp0Yfu3oJm/4c=" # GH_TOKEN
- secure: "HPMBtknjHM9CjaEoTVLiNtjg7JxmEZ+6AzqjT1LsA0e52dIlWzcRLVLL4uAR8SqMfR1iSj4lW74DzFXEnJCKa+04hiTp9Z/6zw/tX/mFOkkpz8H2gVttXh68NRHLJSJrRX/5fGCcl7AHypADBaoybjEmwjFxYRZ1Nwf81SwQVik=" # BALTO_TOKEN
install:
- if [ -a .git/shallow ]; then git fetch --unshallow; fi
- docker pull ${BASENAME} || ./travis/docker-build-and-push.sh ${BASENAME} travis/travis-base.Dockerfile
Expand All @@ -40,32 +41,17 @@ script:
- ./travis/skip-pkg.sh || docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 ${BASENAME_386} linux32 ./travis/debian-build.sh deb/debian-i386/DIST
- ./travis/skip-pkg.sh || docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 ${BASENAME_UBUNTU_386} linux32 ./travis/debian-build.sh deb/ubuntu-i386/DIST
- ./travis/skip-pkg.sh || docker run -v $PWD:/usr/src/i3/ -w /usr/src/i3 ${BASENAME} ./travis/docs.sh
- ./travis/skip-pkg.sh || travis/prep-bintray.sh
- ./travis/skip-pkg.sh || travis/push-balto.sh

deploy:
- provider: bintray
file: travis/bintray-autobuild-debian.json
user: $BINTRAY_USER
key: $BINTRAY_KEY
skip_cleanup: true
on:
branch: next
condition: $CC = gcc
- provider: bintray
file: travis/bintray-autobuild-ubuntu.json
user: $BINTRAY_USER
key: $BINTRAY_KEY
skip_cleanup: true
on:
branch: next
condition: $CC = gcc
- provider: script
script: travis/deploy-github-pages.sh
skip_cleanup: true
on:
branch: next
condition: $CC = gcc

after_deploy:
- travis/cleanup-bintray.pl i3-autobuild
- travis/cleanup-bintray.pl i3-autobuild-ubuntu
# TODO: implement cleanup if we stick with balto
#after_deploy:
# - travis/cleanup-bintray.pl i3-autobuild
# - travis/cleanup-bintray.pl i3-autobuild-ubuntu
36 changes: 0 additions & 36 deletions travis/bintray-autobuild-debian.json

This file was deleted.

36 changes: 0 additions & 36 deletions travis/bintray-autobuild-ubuntu.json

This file was deleted.

6 changes: 0 additions & 6 deletions travis/prep-bintray.sh

This file was deleted.

23 changes: 23 additions & 0 deletions travis/push-balto.sh
@@ -0,0 +1,23 @@
#!/bin/sh

set -e

for fn in distbuild/deb/debian-amd64/*.deb distbuild/deb/debian-i386/*.deb
do
echo "pushing $fn to balto"
curl \
--header "Authorization: Bearer ${BALTO_TOKEN}" \
--form "package=@${fn}" \
--form distribution=all \
https://i3.baltorepo.com/i3/i3-autobuild/upload/
done

for fn in distbuild/deb/ubuntu-amd64/*.deb distbuild/deb/ubuntu-i386/*.deb
do
echo "pushing $fn to balto"
curl \
--header "Authorization: Bearer ${BALTO_TOKEN}" \
--form "package=@${fn}" \
--form distribution=all \
https://i3.baltorepo.com/i3/i3-autobuild-ubuntu/upload/
done

0 comments on commit 521949b

Please sign in to comment.