forked from Axelrod-Python/Axelrod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (37 loc) · 875 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: python
python:
- 3.5
- 3.6
cache:
directories:
- $TRAVIS_BUILD_DIR/.hypothesis
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- pip install -r requirements.txt
- pip install sphinx
- pip install sphinx_rtd_theme
- pip install docutils==0.12
- pip install coverage
- pip install coveralls
- pip install mypy
script:
# Build the documentation
- cd docs; make html
# Run the test suit with coverage
- cd ..
- coverage run --source=axelrod -m unittest discover
- coverage report -m
# Run the doctests
- python doctests.py
# Run the type checker
- python run_mypy.py
# Check that all strategies are in the index
- python run_strategy_indexer.py
after_success:
- coveralls
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/3cc093037c0df458209d