Skip to content

update config for CI tests to pass again #87

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

Merged
merged 1 commit into from
Oct 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 37 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,50 @@
language: python

sudo: false

env:
- TEST_SUITE=samples
- TEST_SUITE=coverage
python:
- "2.7"
- "3.4"
- "3.5"
# - "pypy" Disabling pypy until travis moves to newer version, known issue with lxml crashing pypy
- "3.6"
- "3.7-dev"
- "pypy"
- "pypy3"

matrix:
fast_finish: true
allow_failures:
- python: "3.7-dev"
# 3.7-dev started crashing when building lxml although the neither the python version nor the lxml version seemed to change.
# Will have to investigate further.
- python: "pypy"
- python: "pypy3"
# pypy will just crash due to an incompatibility with lxml.
# Newer versions of pypy seem to crash also, so we probably have to fix with a newer version of lxml

before_install:
# execute all of the commands which need to be executed
# before installing dependencies

install:
- pip install unittest2
- pip install nose
- pip install pyxb
- pip install lxml
- pip install coveralls
# install all of the dependencies we need here
- pip install nose
- pip install pyxb==1.2.5
# can't change the pyxb version without changing the version in setup.py
# and regenerating the bindings in apicontractsv1.py
- pip install lxml
- if [[ "$TEST_SUITE" == "coverage" ]]; then pip install coveralls; fi

before_script:
- git submodule update --remote --recursive
# execute all of the commands which need to be executed
# before running actual tests
- if [[ "$TEST_SUITE" == "samples" ]]; then git submodule update --remote --recursive; fi

script:
- nosetests --with-coverage -cover-package=authorizenet
- coveralls
- python setup.py install
- cd sample-code-python
- python ./test-runner.py
# execute all of the tests or other commands to determine
# whether the build will pass or fail
- if [[ "$TEST_SUITE" == "coverage" ]]; then nosetests --with-coverage -cover-package=authorizenet; coveralls; fi
- if [[ "$TEST_SUITE" == "samples" ]]; then python setup.py install; cd sample-code-python; python ./test-runner.py; fi
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ The API Reference Guide provides examples of what information is needed for a pa

Run the following to get pyxb and nosetests:
- pip install pyxb==1.2.5
- pip install unittest2
- pip install nose
- pip install lxml

Expand Down
25 changes: 13 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@

# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.5'
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4'
],

# What does your project relate to?
Expand All @@ -63,11 +64,11 @@
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=['pyxb==1.2.5', 'nose', 'mock', 'lxml'],
#install_requires=['nose'],
#install_requires=['nosetests'],
#install_requires=['mock'],
#install_requires=['lxml'],
#install_requires=['nose'],
#install_requires=['nosetests'],
#install_requires=['mock'],
#install_requires=['lxml'],

# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
Expand All @@ -80,22 +81,22 @@
},
environment_variables={
#api.login.id : xyz
#transaction.key : xyz
#transaction.key : xyz
#md5.hash.key : MD5_HASH_KEY
},

# If there are data files included in your packages that need to be
# installed, specify them here. If using Python 2.6 or less, then these
# have to be included in MANIFEST.in as well.
#package_data={
#package_data={
# 'sample': ['package_data.dat'],
#},
#},

# Although 'package_data' is the preferred approach, in some case you may
# need to place data files outside of your packages. See:
# http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
# data_files=[('my_data', ['data/data_file'])],
# data_files=[('my_data', ['data/data_file'])],

# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
Expand All @@ -104,5 +105,5 @@
# 'console_scripts': [
# 'sample=sample:main',
# ],
#},
#},
)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy