Skip to content

Commit

Permalink
Add support for travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwmillr committed Jun 23, 2018
1 parent 4ffbf3f commit bc88345
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
@@ -0,0 +1,9 @@
language: python
python:
- '3.4'
- '3.5'
- '3.6'

install: pip install -r requirements.txt

script: python -m unittest discover
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -10,11 +10,11 @@ The easiest way to use this package is to install it via [PyPI](https://pypi.org
`$pip install sportradar`

If you'd prefer to clone the repository and install it yourself, follow these steps:
1. Clone this repo:
`$git clone https://github.com/johnwmillr/SportradarAPIs.git`
2. Enter the directory created:
`$cd SportradarAPIs`
3. Install using pip:
1. Clone this repo:
`$git clone https://github.com/johnwmillr/SportradarAPI.git`
2. Enter the directory created:
`$cd SportradarAPI`
3. Install using pip:
`$python setup.py install`


Expand Down Expand Up @@ -47,7 +47,7 @@ for group in worldcup['groups']:
except Exception as e:
print("Error: {}".format(e))
time.sleep(5) # wait 5 seconds before next API call

# Save the team data to a .json file
print("Saving the data...", end="", flush=True)
with open("world_cup_team_data.json", "w") as outfile:
Expand All @@ -57,4 +57,4 @@ print(" Done.")
```

## Example projects
- [2018 FIFA World Cup player stats](https://www.johnwmillr.com/fifa-world-cup-data/)
- [2018 FIFA World Cup player stats](https://www.johnwmillr.com/fifa-world-cup-data/)
2 changes: 1 addition & 1 deletion sportradar/__init__.py
Expand Up @@ -5,7 +5,7 @@
"""
Sportradar APIs library
"""
__version__ = '0.2.0'
__version__ = '0.3.0'
__author__ = 'John W. Miller'
__description__ = 'A Python wrapper for the Sportradar APIs'
__license__ = 'MIT'
Expand Down

0 comments on commit bc88345

Please sign in to comment.