Skip to content

Commit

Permalink
Add Continuous Integration testing with Travis CI
Browse files Browse the repository at this point in the history
This basic config is enough to get travis tests to run on each push to the remote repo.
  • Loading branch information
zadacka committed Apr 18, 2021
1 parent 87c84b4 commit c462d43
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "nightly"

services:
- xvfb

# command to run tests
script: python -m unittest discover
Empty file added requirements.txt
Empty file.
Empty file added test/__init__.py
Empty file.
11 changes: 11 additions & 0 deletions test/test_travis.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import unittest


class TestCI(unittest.TestCase):
@staticmethod
def test_always_passes():
assert True

# @staticmethod
# def test_always_fails():
# assert False

0 comments on commit c462d43

Please sign in to comment.