1
0
mirror of https://github.com/fedora-python/tox-current-env.git synced 2024-12-24 00:56:16 +01:00

Add Travis CI

This commit is contained in:
Miro Hrončok 2019-07-23 13:07:30 +02:00
parent 2fe2463a39
commit 3bca04c780
2 changed files with 28 additions and 0 deletions

16
.travis.yml Normal file
View File

@ -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

12
Dockerfile Normal file
View File

@ -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"]