From 3bca04c7802396aef5d11a0746d9d8d04772c571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 23 Jul 2019 13:07:30 +0200 Subject: [PATCH] Add Travis CI --- .travis.yml | 16 ++++++++++++++++ Dockerfile | 12 ++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .travis.yml create mode 100644 Dockerfile diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e9ae6e9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: generic + +services: + - docker + +env: + - FEDORA=29 + - FEDORA=30 + - FEDORA=rawhide + +install: + - sed -i "s|FROM fedora|FROM registry.fedoraproject.org/fedora:${FEDORA}|" Dockerfile + - docker build -t tox-current-env . + +script: + - docker run -v $(pwd):$(pwd) -w $(pwd) -i -t tox-current-env diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a8266c7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM fedora + +RUN dnf -y install --setopt=install_weak_deps=false --setopt=tsflags=nodocs \ + --setopt=deltarpm=false --allowerasing --best --disablerepo=\*modular \ + tox python36 python37 python38 && \ + dnf -y --setopt=install_weak_deps=false --setopt=tsflags=nodocs --best\ + --setopt=deltarpm=false --allowerasing --disablerepo=\*modular update && \ + dnf clean all + +ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 + +CMD ["/usr/bin/tox"]