Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI #117

Merged
merged 16 commits into from
Sep 20, 2018
Merged
39 changes: 39 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
language: python
matrix:
include:
- os: linux
python: 3.6
- os: linux
language: generic
env: PYTHON="3.7" MINICONDA_OS="Linux"
- os: linux
python: nightly
- os: osx
language: generic
env: PYTHON="3.6" MINICONDA_OS="MacOSX"
- os: osx
language: generic
env: PYTHON="3.7" MINICONDA_OS="MacOSX"
allow_failures:
- python: "nightly"

before_install:
- if [[ $MINICONDA_OS ]]; then
URL="https://repo.continuum.io/miniconda/Miniconda3-latest-${MINICONDA_OS}-x86_64.sh";
wget "${URL}" -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda;
export PATH="$HOME/miniconda/bin:$PATH";
hash -r;
conda config --set always_yes yes --set changeps1 no;
conda update -q conda;
conda info -a;
conda create -q -n test-environment python=$PYTHON;
source activate test-environment;
fi;

install:
- pip install -e .;
- pip install pytest;

script:
- pytest
15 changes: 15 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
environment:

matrix:
# https://www.appveyor.com/docs/windows-images-software/#python
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37-x64"

install:
- '%PYTHON%\Scripts\pip install -e .'
- '%PYTHON%\Scripts\pip install pytest'
build: off
test_script:
- '%PYTHON%\Scripts\pytest'
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
from setuptools import setup
import sys


def readme():
with open('README.md') as file:
return file.read()

backports = []

if sys.version_info < (3, 7):
backports += ['dataclasses']

setup(
name='ppb',
version='0.3.0',
packages=['ppb'],
install_requires=[
'pygame',
'ppb-vector',
],
] + backports,
url='https://github.com/pathunstrom/pursuedpybear',
license='',
author='Piper Thunstrom',
Expand Down