Skip to content

Commit

Permalink
Merge pull request #77 from auscompgeek/py37
Browse files Browse the repository at this point in the history
travis: Run tests on Python 3.7
  • Loading branch information
virtuald committed Dec 18, 2018
2 parents 3a85676 + a5c068e commit 1f61c67
Showing 1 changed file with 17 additions and 31 deletions.
48 changes: 17 additions & 31 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,34 @@
language: python
dist: xenial

python:
- "3.5"
- "3.6"
- "3.7"

install:
- pip install pytest coverage header2whatever pytest-cov
- python setup.py sdist
- "pip install dist/robotpy-ctre-*.tar.gz"
script:
- RUNCOVERAGE=1 tests/run_tests.sh

jobs:
include:

# Normal tests
- stage: test
sudo: false
language: python
python: "3.5"
install:
- pip install pytest coverage header2whatever pytest-cov
- python setup.py sdist
- "pip install dist/robotpy-ctre-*.tar.gz"
script:
- RUNCOVERAGE=1 tests/run_tests.sh

- stage: test
sudo: false
language: python
python: "3.6"
install:
- pip install pytest coverage header2whatever pytest-cov
- python setup.py sdist
- "pip install dist/robotpy-ctre-*.tar.gz"
script:
- RUNCOVERAGE=1 tests/run_tests.sh


# Check to see if the compilation succeeds
- stage: test
sudo: false
language: python
python: "3.6"
- python: "3.7"
install:
- FORCE_HAL_INSTALL=1 pip install pybind11 header2whatever robotpy-hal-roborio
script:
- TRAVIS_BUILD=1 python setup.py sdist build

- stage: deploy-pypi
sudo: false
language: python
python: "3.6"
if: tag IS present
install:
- pip install header2whatever
script: true
script: skip
deploy:
- provider: pypi
user: $PYPI_USERNAME
Expand Down

0 comments on commit 1f61c67

Please sign in to comment.