1
1
mirror of https://github.com/containers/udica synced 2024-09-25 10:30:52 +02:00
udica/.travis.yml
Lukas Vrabec a30ec6c6fd
Add support for python code formatter black in CI
black is python source formatter follow PEP-8 format style. Every PR and
commit should follow this format.

Following commands could be used to check format:

    $ make format-check

To fix format, use:

    $ make format
2019-10-16 12:27:33 +02:00

30 lines
925 B
YAML

sudo: required
language: python
services:
- docker
before_install:
- docker pull fedora:rawhide
- docker pull fedora:latest
- docker pull centos:centos8
- sudo apt-get install -y build-essential
- pip3 install pyflakes
- pip3 install black
script:
- make format-check
- make lint
# test on Fedora Rawhide
- docker run -v $PWD:/root/build/ fedora:rawhide /bin/sh -c "cd /root/build; python3 -m unittest -v tests/test_unit.py"
# test on the latest stable release of Fedora
- docker run -v $PWD:/root/build/ fedora:latest /bin/sh -c "cd /root/build; python3 -m unittest -v tests/test_unit.py"
# test on the stable release of Centos 8
- docker run -v $PWD:/root/build/ centos:centos8 /bin/sh -c "yum install python3 -y; cd /root/build; python3 -m unittest -v tests/test_unit.py"
notifications:
emails:
- lvrabec@redhat.com
- jzarsky@redhat.com