Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: python | ||
cache: pip | ||
python: | ||
- "2.7" | ||
install: | ||
# Disable gcc optimizations for greater install speed (lxml) | ||
- CFLAGS="-O0" pip install . --upgrade | ||
script: | ||
- ./runtests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ Or after downloading/cloning the source: | |
```bash | ||
python setup.py install | ||
``` | ||
|
||
Usage | ||
----- | ||
```python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
#!/bin/bash | ||
TRAVIS_BUILD=${TRAVIS_BUILD:-0} | ||
export PYTHONPATH=$PYTHONPATH:. | ||
python2 setup.py install | ||
python2 tests/unittest_pybikes.py $@ | ||
# It's not a really good idea to test spiders on travis | ||
# limit test to some basic consistency and usage tests | ||
if [ $TRAVIS_BUILD -eq 1 ]; then | ||
python tests/unittest_pybikes.py TestBikeShareStationInstance | ||
python tests/unittest_pybikes.py TestBikeShareSystemInstance | ||
python tests/unittest_pybikes.py TestDataFiles | ||
else | ||
pip install . | ||
python tests/unittest_pybikes.py $@ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters