A job for Fedora 31 using docker (only on PRs for now)

This commit is contained in:
Dmitri Bogomolov 2020-10-08 18:35:18 +03:00
parent 490a34382e
commit b99d5670db
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
2 changed files with 45 additions and 0 deletions

View File

@ -4,6 +4,8 @@ dist: bionic
python:
- "2.7_with_system_site_packages"
- "3.7"
services:
- docker
addons:
apt:
packages:
@ -17,6 +19,14 @@ jobs:
allow_failures:
- os: windows
include:
- dist: bionic
- dist: bionic
if: type = pull_request
language: generic
install:
- docker build -t bm_fedora -f packages/Dockerfile.fedora .
script:
- docker run --rm bm_fedora
- os: windows
language: shell
before_install:

View File

@ -0,0 +1,35 @@
# A container for testing PyBitmessage on Fedora
FROM fedora:31
EXPOSE 8444 8442
ENV HOME /home/bitmessage
ENV BITMESSAGE_HOME ${HOME}
ENV TRAVIS_DIST fedora31
RUN dnf -y install \
glibc-langpack-en gcc-c++ libcap-devel openssl-devel \
python2-devel python2-pip python2-qt4 \
redhat-rpm-config tor xorg-x11-server-Xvfb
RUN ln -s /usr/bin/python2 /usr/bin/python
WORKDIR ${HOME}
ADD . ${HOME}
# Install tests dependencies
RUN pip2 install --upgrade pip && pip2 install -r requirements.txt
# Install
RUN python2 setup.py install
# Create a user
RUN useradd bitmessage && chown -R bitmessage ${HOME}
USER bitmessage
# Generate default config and run core tests
RUN LC_ALL=en_US.utf8 xvfb-run src/bitmessagemain.py -t
CMD ["python2", "setup.py", "test"]