45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
language: python
|
|
|
|
sudo: required
|
|
|
|
env:
|
|
- DIST=fedora31
|
|
- DIST=fedoradev
|
|
- DIST=opensuselp15
|
|
- DIST=opensusetw
|
|
|
|
# podman is currently not in Ubuntu
|
|
addons:
|
|
apt:
|
|
update: true
|
|
sources:
|
|
- sourceline: "ppa:projectatomic/ppa"
|
|
packages:
|
|
- podman
|
|
|
|
# the python here is basically no-op just used for coveralls
|
|
python:
|
|
- "3.6"
|
|
|
|
before_install:
|
|
# podman needs a basic register set up (packaging bug in the ppa)
|
|
- sudo mkdir -p /etc/containers
|
|
- echo -e "[registries.search]\nregistries = ['docker.io']" | sudo tee /etc/containers/registries.conf
|
|
# we need to register travis to allow subuid/gid for the rootless execution
|
|
- echo "travis:110000:65535" | sudo tee /etc/subuid
|
|
- echo "travis:110000:65535" | sudo tee /etc/subgid
|
|
|
|
install:
|
|
- pip install coveralls
|
|
|
|
script:
|
|
- podman build -t $DIST -f test/Dockerfile-$DIST .
|
|
- podman run -v $(pwd):/usr/src/rpmlint/ $DIST python3 -m pytest
|
|
- podman run -v $(pwd):/usr/src/rpmlint/ $DIST flake8
|
|
|
|
after_success:
|
|
- coverage combine
|
|
# above does not really work as promised
|
|
- sed -i -e "s#/usr/src/rpmlint#$(pwd)#g" .coverage
|
|
- coveralls
|