aioupnp/.travis.yml

86 lines
1.8 KiB
YAML
Raw Normal View History

2018-09-25 22:01:03 +02:00
sudo: required
dist: xenial
language: python
2019-10-25 20:50:33 +02:00
python: "3.8"
2018-09-25 22:01:03 +02:00
2018-10-18 04:38:17 +02:00
jobs:
include:
- stage: code quality
name: "mypy"
before_install:
- pip install mypy lxml
2018-10-22 03:11:41 +02:00
- pip install -e .[test]
2018-09-25 22:01:03 +02:00
2018-10-18 04:38:17 +02:00
script:
2019-05-22 06:32:25 +02:00
- mypy aioupnp --txt-report . --scripts-are-modules; cat index.txt; rm index.txt
2018-09-25 22:01:03 +02:00
2018-10-18 04:38:17 +02:00
- &tests
stage: test
2019-10-25 20:50:33 +02:00
name: "Unit Tests w/ Python 3.8"
python: "3.8"
2018-10-18 04:38:17 +02:00
before_install:
- pip install pylint coverage
2018-10-22 03:11:41 +02:00
- pip install -e .[test]
2018-10-18 04:38:17 +02:00
script:
2018-10-25 01:24:39 +02:00
- HOME=/tmp coverage run -m unittest discover -v tests
2018-10-18 04:38:17 +02:00
after_success:
- bash <(curl -s https://codecov.io/bash)
2019-10-25 20:50:33 +02:00
- <<: *tests
name: "Unit Tests w/ Python 3.7"
python: "3.7"
2018-10-18 04:38:17 +02:00
- <<: *tests
name: "Unit Tests w/ Python 3.6"
python: "3.6"
2018-10-18 18:31:36 +02:00
2018-10-19 18:14:33 +02:00
#
#if: tag IS present
# - &build
# name: "Linux Release"
# python: "3.6"
# install:
# - pip install pyinstaller
# - pip install -e .
#
# script:
# - pyinstaller -F -n aioupnp aioupnp/__main__.py
# - chmod +x dist/aioupnp
# - zip -j dist/aioupnp-${OS}.zip dist/aioupnp
#
# env: OS=linux
#
# addons:
# artifacts:
# working_dir: dist
# paths:
# - aioupnp-${OS}.zip
#
# - <<: *build
# name: "Mac Release"
# os: osx
# osx_image: xcode9.4
# language: generic
# env: OS=mac
# install:
# - pip3 install pyinstaller
# - pip3 install -e .
#
# - <<: *build
# name: "Windows Release"
# language: generic
# services:
# - docker
# install:
# - docker pull cdrx/pyinstaller-windows:python3-32bit
# script:
# - docker run -v "$(pwd):/src/aioupnp" cdrx/pyinstaller-windows:python3-32bit aioupnp/wine_build.sh
# - sudo zip -j dist/aioupnp-windows.zip dist/aioupnp.exe
# addons:
# artifacts:
# working_dir: dist
# paths:
# - aioupnp-windows.zip