forked from ASPP/pelita
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
58 lines (53 loc) · 1.49 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
language: python
sudo: false
matrix:
include:
- python: 3.5
- python: 3.6
- python: 3.7
dist: xenial
sudo: true
env:
global:
# our GITHUB_TOKEN
secure: acCojrLAQFpC5thBOVfOV77mxFATlWGVtuKB1e27jp/0kQx6RILu29OO9A0SzTMOxjGbI8G4pQy6tLDuNukoG5Rl6vBvHSEGS+naInBSgF7zc0zC9+YJK7gaJc5qZ6jnURsi84+bIEz//RP5WN5Yz3QsJ4t9QZ3zwbBESTdhA9M=
# install dependencies and pelita
install:
- pip install pytest-cov codecov coveralls
- pip install -e .
# test scripts
script:
- >
python -c "import zmq; print('Using pyzmq {} and zmq {}.'.format(zmq.pyzmq_version(), zmq.zmq_version()))" &&
python -m pytest --cov=pelita -v test/ &&
python -m pelita.scripts.pelita_main --progress &&
pelita --null --rounds 100 --filter small $player 2>&1
- >
if [[ $TRAVIS_PYTHON_VERSION == 3.6 || $TRAVIS_PYTHON_VERSION == 3.7 ]] ; then
pelita-tournament --non-interactive --viewer null
fi
- >
if [[ $TRAVIS_PYTHON_VERSION == 3.6 || $TRAVIS_PYTHON_VERSION == 3.7 ]] ; then
git clone https://github.com/ASPP/pelita_template && ( cd pelita_template/ && python -m pytest . )
fi
# push coverage
after_success:
- codecov
- coveralls
# generate sphinx documentation in doc/build/html/
before_deploy:
- python -m pip install sphinx
- git fetch --unshallow
- git fetch --tags
- . ./build-docs.sh
# deploy docs
deploy:
provider: pages
local-dir: doc/build/html/
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
on:
branch: master
python: 3.7
repo: ASPP/pelita