forked from ASPP/pelita
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (37 loc) · 1.31 KB
/
.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
language: python
sudo: false
matrix:
include:
- python: "3.5"
env: PYZMQ="pyzmq"
- python: "3.6"
env: PYZMQ="pyzmq"
env:
global:
- secure: "fHTmXSkUyVFu7lJ4upcu4Xhv+5cTGq+SJ+GV9UUJ9guZYVWafxJw3CRmd/qqjucQzOTPg/2JA4/9XqDZDSWKKBwGTOgeiFjKaa4xPFO/bvpbECqR4y7TDh7k7zSjMCDD624b8k6LyWiaerh50ShU2CSi3cTjpyZWloolQWRotLM="
- REPO: "ASPP/pelita"
# command to install dependencies
install:
- pip install $PYZMQ --install-option="--zmq=bundled"
- pip install pyyaml
- pip install pytest-cov codecov coveralls
# command to run tests
script:
- >
python -c "import zmq; print('Using zmq %s.' % zmq.zmq_version())" &&
python -c "import zmq; print('Using pyzmq %s.' % zmq.pyzmq_version())" &&
PYTHONPATH=. py.test --cov=pelita -v test/ &&
python -m pelita.scripts.pelita_main --progress &&
python setup.py install &&
for player in $(pelita --list-teams) ; do
pelita --check-team $player || exit 1
res=$(pelita --null --rounds 100 --filter small $player 2>&1)
echo $res
(echo $res | grep -q Exception) && exit 1
echo "" # This resets the error code
done
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pelita-tournament --non-interactive --viewer null ; fi
after_success:
- codecov
- coveralls
- ./deploy-gh-pages.sh