1
0
Fork 0

Merge pull request #196 from TomasKorbar/circleci

Start using CircleCi
This commit is contained in:
Jaroslav Škarvada 2019-12-12 17:49:58 +01:00 committed by GitHub
commit f753351bff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 51 deletions

View file

@ -1,24 +0,0 @@
language: generic
sudo: required
services:
- docker
matrix:
include:
- name: "fedora 28 python 2 test suite"
env:
- python=2
- os=fedora:28
- package_manager=dnf
- name: "fedora 28 python 3 test suite"
env:
- python=3
- os=fedora:28
- package_manager=dnf
- name: "centos 7 test suite"
env:
- python=2
- os=centos:7
- package_manager=yum
script:
- docker build --build-arg PYTHON=${python} --build-arg OS=${os} --build-arg PACKAGE_MANAGER=${package_manager} -t tuned_image -f tests/Dockerfile .
- docker run tuned_image /bin/sh -c "make test PYTHON=/usr/bin/python${python}"

View file

@ -1,27 +0,0 @@
ARG OS
FROM $OS
WORKDIR /test_dir
ADD ./ /test_dir
ARG PACKAGE_MANAGER=dnf
ENV PKM=$PACKAGE_MANAGER
ARG OS
RUN if [[ $OS == "centos:7" ]]; then yum install -y epel-release; fi;
RUN ${PKM} install -y virt-what ethtool gawk hdparm util-linux dbus polkit make
ARG PYTHON
RUN ${PKM} install -y python$PYTHON-mock
ARG OS
ARG PYTHON
RUN if [[ $OS == "centos:7" ]]; then export py=python; \
else export py=python$PYTHON; fi; \
${PKM} install -y ${py}-dbus \
${py}-decorator ${py}-pyudev ${py}-configobj ${py}-schedutils \
${py}-linux-procfs ${py}-perf ${py}-unittest2 ${py}-gobject-base;