-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
48 lines (45 loc) · 1.56 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
dist: xenial
services:
- docker
language: bash
addons:
apt:
config:
retries: true
update: true
packages:
# Install libguestfs-tools to use virt-tar-out command.
# https://packages.ubuntu.com/xenial/libguestfs-tools
- libguestfs-tools
env:
global:
- QEMU_VER=v3.1.0-3
- DOCKER_SERVER=docker.io
- DOCKER_REPO=$DOCKER_SERVER/multiarch/centos
# Enable below environment variables for debug when virt-tar-out shows error.
# - LIBGUESTFS_DEBUG=1
# - LIBGUESTFS_TRACE=1
matrix:
# Set available versions
# https://wiki.centos.org/Manuals/ReleaseNotes
# x86_64: http://cloud.centos.org/centos/7/images
# others: http://mirror.centos.org/altarch/$VERSION/isos/$ARCH
# Comment out cases that have issue.
- VERSION=7.6.1811-x86_64
- VERSION=7.6.1901-x86_64
# - VERSION=7.6.1810-aarch64
- VERSION=7.6.1810-armhfp
# - VERSION=7.6.1810-i386
# - VERSION=7.6.1810-ppc64
# - VERSION=7.6.1810-ppc64le
before_install:
- docker run --rm --privileged multiarch/qemu-user-static:register
script:
- ./update.sh -v "${VERSION}" -u "${QEMU_VER}" -d "${DOCKER_REPO}"
- docker images
after_success:
- |
if [[ "${TRAVIS_BRANCH}" == 'master' && "${TRAVIS_PULL_REQUEST}" == 'false' ]]; then
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin "${DOCKER_SERVER}" && \
docker push "${DOCKER_REPO}"
fi