forked from tjcsl/cslbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (44 loc) · 1.75 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
language: python
sudo: false
python:
- 3.5
services:
- postgresql
env:
global:
secure: ksEkBn8IqgTkE5CDSlvV6PxQ5Cvvls9MjU4fYwBtZw32uSarIK9qkR6dtgbSxN37vS/lRgDM2yIDedhMTUUnYtL+qfC3866DnwHgN9tHdvFqB7+bZGFTg1lnuJN9IW/CdCaDgNSkZjNqNY6t4lzdrAsEYR4KDsqYwjsbJEqZRkw=
secure: ip77J4FX2xc984JaYfA7g7topgCKndI+bGiAdAQD361YEufJEumNJyMaM+K+u8XMfb7AvQe7gsBUaKVZummlEGhAK3lWkPEJTXqktd9lTLoRF86mEOXaf5gL9R7W2T98FWt549n3kOtyOD6LlmBDL9u2YNckjzi76a7+mts3O2M=
cache:
directories:
- $HOME/.cache/pip
before_install:
- sed -i "s#/etc/cslbot#$TRAVIS_BUILD_DIR#g" cslbot/helpers/*.py scripts/*.py
- git config user.email "test@test.com"
- git config user.name "test"
- git commit -m 'update path' cslbot/helpers/*.py scripts/*.py
install:
- pip install flake8 sphinx psycopg2 coveralls .
# We need to install this separately since it will pull in CslBot from pypi otherwise
- pip install git+git://github.com/tjcsl/cslbot-tjhsst
before_script:
- psql -U postgres -c 'create database ircbot'
- echo -e 'test\n#test\n#test\ntest' | cslbot
- sed -i 's#engine.=.#\0 postgresql://postgres@/ircbot#' $TRAVIS_BUILD_DIR/config.cfg
- sed -i 's#extramodules.=.#\0 cslbot-tjhsst#' $TRAVIS_BUILD_DIR/config.cfg
script:
- flake8 --max-line-length=200 .
- coverage run ./setup.py test
- coverage run -a ./bot.py --validate
- coverage run -a ./scripts/migrate.py
- coverage run -a ./scripts/gen_babble.py
- coverage run -a ./scripts/parselogs.py /tmp/ircbot
- coverage run -a ./scripts/parsedata.py /tmp/ircbot
- ./scripts/gendocs.sh
after_success:
- coveralls
- ./scripts/deploy_docs.sh
notifications:
irc:
channels: "chat.freenode.net#tjcsl-cslbot"
skip_join: true
use_notice: true