加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 2.32 KB
一键复制 编辑 原始数据 按行查看 历史
Sergei Kuvakin 提交于 2020-03-01 21:20 . qemu 4.2.0-6
dist: xenial
services: docker
language: bash
addons:
apt:
config:
retries: true
update: true
sources:
# Install rpm2cpio (4.14.1+dfsg1-2) and
# cpio (2.12+dfsg-6) packages for bionic,
# the error "cpio: Malformed number" happens
# for qemu-user-static-4.1.0-1.fc31.x86_64.rpm,
# with rpm2cpio (4.12.0.1+dfsg1-3build3) and
# cpio (2.11+dfsg-5ubuntu1) and rpm2cpio for xenial.
# https://packages.ubuntu.com/bionic/cpio
- sourceline: 'deb http://archive.ubuntu.com/ubuntu bionic main universe'
packages:
- jq
- rpm2cpio
- cpio
env:
global:
- MAJOR_VERSION=4
- MINOR_VERSION=2
- PATCH_VERSION=0
- RELEASE_VERSION=6
- VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION-$RELEASE_VERSION
# Container tag version string.
# Set it here to give a flexibility of the value such as "X.Y".
- TAG_VER=$VERSION
# See qemu-user-static's RPM spec file on Fedora to check the new version.
# https://src.fedoraproject.org/rpms/qemu/blob/master/f/qemu.spec
- DOCKER_SERVER=docker.io
# - DOCKER_SERVER=quay.io
# Git repository
- REPO=multiarch/qemu-user-static
# Container repository
- DOCKER_REPO=$DOCKER_SERVER/multiarch/qemu-user-static
# - DOCKER_REPO=$DOCKER_SERVER/your_username/qemu-user-static
- PACKAGE_URI="https://kojipkgs.fedoraproject.org/packages/qemu/4.2.0/6.fc33/x86_64/qemu-user-static-4.2.0-6.fc33.x86_64.rpm"
- PACKAGE_FILENAME=$(basename "$PACKAGE_URI")
before_script:
- 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" -t "$TAG_VER" -r "$REPO" -d "$DOCKER_REPO"
- docker images
- ./test.sh -d "$DOCKER_REPO"
after_success:
- |
if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" "$DOCKER_SERVER" && \
docker push "$DOCKER_REPO"
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化