debian-forge/.travis.yml
Lars Karlitski 7d39b5766d travis: disable python's output buffering
Python buffers stdout and stderr if they're not connected to the
terminal. This messes with the ordering of osbuild and stage output,
becasue stages produce output more quickly.

Globally disable output buffering on travis.
2019-09-25 13:46:40 +02:00

37 lines
1.9 KiB
YAML

dist: bionic
language: python
python:
- "3.7"
env:
- PYTHONUNBUFFERED=1
jobs:
include:
- name: pylint
install: pip install pylint
script: pylint osbuild osbuild-run assemblers/* stages/*
- name: unit-tests
script: python3 -m unittest test.test_osbuild
- name: rpm
before_install:
- sudo apt-get install -y rpm python3-setuptools
- sudo wget --directory-prefix=/usr/lib/rpm/macros.d https://src.fedoraproject.org/rpms/python-rpm-macros/raw/master/f/macros.python-srpm
- sudo wget --directory-prefix=/usr/lib/rpm/macros.d https://src.fedoraproject.org/rpms/python-rpm-macros/raw/master/f/macros.python
- sudo wget --directory-prefix=/usr/lib/rpm/macros.d https://src.fedoraproject.org/rpms/python-rpm-macros/raw/master/f/macros.python3
script: make rpm-nodeps
- name: pipeline-noop
before_install: sudo apt-get install -y systemd-container
script:
- sudo env "PATH=$PATH" python3 -m osbuild --libdir . --output . samples/noop.json
- sudo env "PATH=$PATH" python3 -m osbuild --libdir . --output . samples/noop.json
- name: f30-boot
before_install: sudo apt-get install -y systemd-container yum qemu-kvm
script: sudo env "PATH=$PATH" python3 -m test --case f30-boot --build-pipeline samples/build-from-yum.json
- name: timezone
before_install: sudo apt-get install -y systemd-container yum tar
script: sudo env "PATH=$PATH" python3 -m test --case timezone --build-pipeline samples/build-from-yum.json
- name: firewall
before_install: sudo apt-get install -y systemd-container yum tar
script: sudo env "PATH=$PATH" python3 -m test --case firewall --build-pipeline samples/build-from-yum.json
- name: locale
before_install: sudo apt-get install -y systemd-container yum tar
script: sudo env "PATH=$PATH" python3 -m test --case locale --build-pipeline samples/build-from-yum.json