-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.57 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
sudo: required
dist: trusty
language: python
cache: pip
services:
- docker
- redis
python:
- "3.5"
env:
global:
- OK_ENV=test
- secure: "ChkLmAbeuMXBtMjgBx5ndI5U2P3TMWEonVdRX3ifr7C5M2uDO8RYh+M9aoHzD9xUtif6Z2TQz9dIEYpf1zqVPnF72gZOuPRCdzI/ZNV/EwbM5PKyqLUCBeuNcICEgixoJ0rNNDkA2S2DkBtViM4UUOlsenpibwcdyvlgB5k0g3g="
- secure: "XPb/jeN8vp6hvym4FsHe/2F8PmE9evdFCghwBU+wXYnpgLwHlO23uywPY+LARyUSNSqbSYWwQSjoT9ShtXxiWrnH6cAJxyRN9k6kFdTVd6RlnmOIi9x8Uvw764L8nQA+OhOam7wOwMzGdERiq43KcTVdyrAWdexCoYl9/odVtu4="
- secure: "moGAgNpj7wrPcaAStJZ7xQfxJsu99kEiPfGmhML/FlYm/muGp0PTrykyG5EjnzIwrdfVTL+uQhmUql0tR2T9g9I+FH2xG/cBelgsXJMAA22/FBAHUfQDRi23TT3eLhqsH+wC3c4K7CJFxXm0kB2iSkziHrgPjLm2S25TLIAklP8="
matrix:
- USE_DOCKER=1
- USE_NATIVE=1
install:
- if [ -n "$USE_DOCKER" ]; then travis_retry make docker-build; fi
- if [ -n "$USE_NATIVE" ]; then travis_retry pip --timeout=60 install -r requirements.txt; fi
- if [ -n "$USE_NATIVE" ]; then travis_retry pip --timeout=60 install pytest-timeout python-coveralls; fi
script:
- if [ -n "$USE_DOCKER" ]; then make docker-test; fi
- if [ -n "$USE_NATIVE" ]; then py.test --cov-report term-missing --cov=server tests/ --ignore tests/test_web.py --timeout=30; fi
after_success:
- if [ -n "$USE_NATIVE" ]; then echo "eventually should run coveralls here"; fi
notifications:
email: false
slack:
on_success: never
on_failure: always
secure: mGqCgRCFMB89AKsYVOZI79sifCFOLaQkuY3rvFKMitpD1GYQQpkBbZ9Z1SWi0VQV63oOKTQBrPCeDSwhZMaJA/dCZZIuz6e9nkVyJJUIrqAuH9PjgQr6FM4FkKzVLpHdPnXIikAvUAKiPRzzj8z4KO1EohBRR/xb2/4TpoWrkSA=