mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2024-12-24 17:16:13 +01:00
Add Travis CI
This commit is contained in:
parent
2fe2463a39
commit
3bca04c780
16
.travis.yml
Normal file
16
.travis.yml
Normal 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
12
Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user