Also drop some redundant tests, there is no need to run the same tests several times. It was useful to get travis up and running as one is a subset of another, so helps tracking down problems, but we don't need that for the common case. Signed-off-by: Tom Gundersen <teg@jklm.no>
26 lines
1.3 KiB
YAML
26 lines
1.3 KiB
YAML
dist: bionic
|
|
language: python
|
|
python:
|
|
- "3.7"
|
|
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
|