Skip to content

Commit

Permalink
bump version of qemu to 3.1.0-6.fc30 (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
lafin authored Apr 7, 2019
1 parent c65e1ed commit c263ebb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@ services: docker
language: bash
env:
global:
- VERSION=3.1.0-2
- VERSION=3.1.0-3
- REPO=multiarch/qemu-user-static
- PACKAGE_URI="https://kojipkgs.fedoraproject.org/packages/qemu/3.1.0/2.fc30/x86_64/qemu-user-static-3.1.0-2.fc30.x86_64.rpm"
- PACKAGE_FILENAME=qemu-user-static-3.1.0-2.fc30.x86_64.rpm
- PACKAGE_URI="https://kojipkgs.fedoraproject.org/packages/qemu/3.1.0/6.fc30/x86_64/qemu-user-static-3.1.0-6.fc30.x86_64.rpm"
- PACKAGE_FILENAME=qemu-user-static-3.1.0-6.fc30.x86_64.rpm
before_script:
- sudo apt-get install jq rpm2cpio cpio
- wget --content-disposition $PACKAGE_URI
- rpm2cpio $PACKAGE_FILENAME | cpio -dimv
script:
- ./generate_tarballs.sh
- if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then ./publish.sh -v "$VERSION" -t "$GITHUB_TOKEN" -r "$REPO"; fi
- ./update.sh -v "$VERSION" -r "$REPO"
- |
if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
./publish.sh -v "$VERSION" -t "$GITHUB_TOKEN" -r "$REPO" && ./update.sh -v "$VERSION" -r "$REPO";
fi
after_success:
- if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker push $REPO; fi
- |
if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker push $REPO;
fi
1 change: 1 addition & 0 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ if [ "$release_id" = "null" ]; then
"https://api.github.com/repos/${REPO}/releases" | jq -r --arg version "${VERSION}" '.[] | select(.name == "v"+$version).id')
fi

cd releases/
for file in *; do
content_type=$(file --mime-type -b ${file})
curl -sL \
Expand Down

0 comments on commit c263ebb

Please sign in to comment.