forked from rpm-software-management/rpmlint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 1.27 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
language: python
sudo: required
env:
- DIST=fedora32
- 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 python3 -m cProfile -o profile.stats lint.py -V test/source/* test/binary/* > /dev/null
- podman run -v $(pwd):/usr/src/rpmlint/ $DIST python3 test/dump_stats.py profile.stats
after_success:
- coverage combine
# above does not really work as promised
- sed -i -e "s#/usr/src/rpmlint#$(pwd)#g" .coverage
- coveralls