Skip to content

Commit

Permalink
add travis and appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Jan 27, 2020
1 parent 0dbd631 commit b4528b7
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
environment:
matrix:
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python38"
- PYTHON: "C:\\Python38-x64"

install:
- "%PYTHON%\\python.exe --version"
- "%PYTHON%\\python.exe -m pip install --upgrade pip"
- "%PYTHON%\\python.exe -m pip install --upgrade setuptools wheel"

build: off

test_script:
- "%PYTHON%\\python.exe setup.py tests"

after_test:
- "%PYTHON%\\python.exe setup.py sdist bdist_wheel"

artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*
47 changes: 47 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
language: python

dist: xenial

matrix:
include:
- os: linux
python: 3.5
- os: linux
python: 3.6
- os: linux
python: 3.7
- os: linux
python: 3.8
- os: osx
language: generic
env: PYTHON=3.5.9
- os: osx
language: generic
env: PYTHON=3.6.10
- os: osx
language: generic
env: PYTHON=3.7.6
- os: osx
language: generic
env: PYTHON=3.8.1

before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew outdated pyenv || brew upgrade pyenv
brew install pyenv-virtualenv
pyenv install --list
pyenv install $PYTHON
export PYENV_VERSION=$PYTHON
pyenv virtualenv venv
source /Users/travis/.pyenv/versions/${PYTHON}/envs/venv/bin/activate
fi
install:
- python --version
- python -m pip install --upgrade pip
- python -m pip install --upgrade setuptools wheel

script:
- python setup.py tests
8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MSL-Qt
======

|docs|
|docs| |travis| |appveyor|

This package provides custom Qt_ components that can be used for the graphical user interface.

Expand Down Expand Up @@ -40,6 +40,12 @@ Optional Dependencies
:alt: Documentation Status
:scale: 100%

.. |travis| image:: https://img.shields.io/travis/MSLNZ/msl-qt/master.svg?label=Travis-CI
:target: https://travis-ci.org/MSLNZ/msl-qt

.. |appveyor| image:: https://img.shields.io/appveyor/ci/jborbely/msl-qt/master.svg?label=AppVeyor
:target: https://ci.appveyor.com/project/jborbely/msl-qt/branch/master

.. _Qt: https://www.qt.io/
.. _MSL Package Manager: http://msl-package-manager.readthedocs.io/en/latest/?badge=latest
.. _PyQt5: https://pypi.org/project/PyQt5/
Expand Down

0 comments on commit b4528b7

Please sign in to comment.