Skip to content

Conversation

@micahcochran
Copy link
Contributor

This adds Travis-CI support. You will have to login to https://travis-ci.org/ to enable Travis.

Code was added to shapefile.py to return a status on exit (0 success, anything else is failure). This was needed to work on Travis.

This takes 2 minutes to run and makes sure the the submitted code runs on the doctests.

dos2unix converts newline characters from dos format to unix format. This caused problems for many python versions.

iterShapeRecords() was removed from doctests because it isn't a valid doctest.

Micah Cochran added 4 commits December 18, 2015 13:44
"# do something here" throws off doctest in Python 2.7, removed a > to
make that one not a doctest. Added .travis.yml for Travis-CI.  I'm
expecting Python 3.x tests to fail.
@micahcochran
Copy link
Contributor Author

@micahcochran
Copy link
Contributor Author

Just curious, is this useful to the project or not? Is there something that might need to be changed to make this able to be merged?

@ARF1
Copy link

ARF1 commented Apr 7, 2016

@GeospatialPython +1 for adding Travis-CI support. It would give everybody contributing PRs peace of mind that they did not break anything.

ARF and others added 2 commits April 9, 2016 13:19
@micahcochran
Copy link
Contributor Author

@ARF1 got the iterShapeRecords() example working, thanks!

ARF1 pushed a commit to ARF1/pyshp that referenced this pull request Apr 12, 2016
* Incorporates rebased GeospatialPython#43
* Closes GeospatialPython#43
* Add Travis-CI, remove one doctest "...    # do something here" throws off doctest in Python 2.7, removed a > to make that one not a doctest. Added .travis.yml for Travis-CI.  I'm expecting Python 3.x tests to fail.
* on success test return 0, on failure return the number of failed tests
* added sys.exit() for return code
* convert README.txt from dos to unix format, see if it helps doctest
ARF1 pushed a commit to ARF1/pyshp that referenced this pull request Apr 12, 2016
* Incorporates rebased GeospatialPython#43
* Closes GeospatialPython#43
* Add Travis-CI, remove one doctest "...    # do something here" throws off doctest in Python 2.7, removed a > to make that one not a doctest. Added .travis.yml for Travis-CI.  I'm expecting Python 3.x tests to fail.
* on success test return 0, on failure return the number of failed tests
* added sys.exit() for return code
* convert README.txt from dos to unix format, see if it helps doctest
@ARF1 ARF1 mentioned this pull request Apr 12, 2016
ARF1 pushed a commit to ARF1/pyshp that referenced this pull request Apr 12, 2016
@micahcochran
Copy link
Contributor Author

@ARF1 took this pull request and improved upon it in PR #54. That PR should be merged instead of this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants