Skip to content

Commit

Permalink
Merge pull request #117 from astronouth7303/circleci-20-test
Browse files Browse the repository at this point in the history
Adds CI
  • Loading branch information
pathunstrom authored Sep 20, 2018
2 parents 6c2a41b + 0c790c3 commit 319b76d
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
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

0 comments on commit 319b76d

Please sign in to comment.