forked from Charcoal-SE/SmokeDetector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (45 loc) · 1.41 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
dist: xenial
language: python
sudo: true
python:
- '3.5'
before_install:
- ls -alR $HOME/.cache/pip/http
- sudo ls -alR $HOME/.cache/pip/http
install:
- pip3 install -r requirements.txt --upgrade
- pip3 install -r user_requirements.txt --upgrade
- pip3 install pytest-cov==2.6.1 codecov python-coveralls
- pip3 uninstall pytest-capturelog || true
before_script:
- sh test/spinup_git.sh
script:
- flake8 --config=tox_tests.ini ./test/
- flake8 --config=tox_classes.ini ./classes/
- flake8 ./
- python3 -W default::Warning -m pytest --cov=chatcommunicate --cov=findspam --cov=globalvars --cov=spamhandling --cov=datahandling --cov=chatcommands --cov=helpers test
branches:
only:
- master
cache:
directories:
- $HOME/virtualenv/python3.5.*
- $HOME/.cache/pip
before_cache:
- sudo chown -R $USER.$USER $HOME/.cache
- rm -f $HOME/.cache/pip/log/debug.log
- rm -rf $HOME/.cache/pip/http
- sudo chown -R $USER.$USER /home/travis/.cache
- rm -f /home/travis/.cache/pip/log/debug.log
- rm -rf /home/travis/.cache/pip/http
- ls -alR $HOME/.cache/pip/http
- sudo ls -alR $HOME/.cache/pip/http
before_deploy:
- sudo chown -R $USER.$USER $HOME/.cache
- rm -f $HOME/.cache/pip/log/debug.log
- rm -rf $HOME/.cache/pip/http
- sudo chown -R $USER.$USER /home/travis/.cache
- rm -f /home/travis/.cache/pip/log/debug.log
- rm -rf /home/travis/.cache/pip/http
after_success:
- coveralls