51 lines
1.6 KiB
YAML
51 lines
1.6 KiB
YAML
language: python
|
|
cache: pip
|
|
dist: bionic
|
|
python:
|
|
- "2.7_with_system_site_packages"
|
|
- "3.7"
|
|
services:
|
|
- docker
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- build-essential
|
|
- dante-server
|
|
- libcap-dev
|
|
- python-qt4
|
|
- tor
|
|
- xvfb
|
|
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:
|
|
- choco install python2 tor
|
|
- python -m pip install --upgrade pip
|
|
- wget -c -nc -nv --content-disposition https://github.com/Bitmessage/ThirdPartyLibraries/blob/master/Win64OpenSSL-1_0_2t.exe?raw=true
|
|
- wget -c -nc -nv https://web.archive.org/web/20190720195601/https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi
|
|
- powershell -Command "Start-Process -FilePath Win64OpenSSL-1_0_2t.exe -ArgumentList '/q /norestart /silent /verysilent /sp- /suppressmsgboxes /dir=C:\OpenSSL-Win64' -Wait"
|
|
- powershell -Command "Start-Process -FilePath VCForPython27.msi -ArgumentList '/qn /norestart' -Wait"
|
|
- python setup.py build_ext --inplace
|
|
env:
|
|
- PATH=/c/Python27:/c/Python27/Scripts:$PATH
|
|
- OPENSSL_DIR="c:\\OpenSSL-Win64"
|
|
install:
|
|
- pip install -r requirements.txt
|
|
- python setup.py install
|
|
- export PYTHONWARNINGS=all
|
|
script:
|
|
- python checkdeps.py
|
|
- xvfb-run src/bitmessagemain.py -t
|
|
- python -bm tests
|