forked from tjcsl/cslbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (41 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
49
50
51
52
language: python
sudo: false
addons:
postgresql: "9.4"
python:
- 3.4
env:
global:
secure: UmNKNYhivdYf9Nm85vnvkPz2ZCEI9GuoQVBwj32alqq1PjUNyIqiGn1pp+J9m/KEyyJTGh8Hlm+57SE0LM7U1/sfu4Rx7hDJNzAbwFo1SJN98nksIPz9CexeaYcKK6z2Cx5rcHi+x39rNNrykXXOMFhwrLuQmKcMrbecylW65j0=
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 "[email protected]"
- git config user.name "test"
- git commit -m 'update path' cslbot/helpers/*.py scripts/*.py
install:
- pip install flake8 sphinx psycopg2 .
# 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=1000 .
- ./setup.py test
- cslbot-migrate
- cslbot-genbabble
- cslbot-parselogs /tmp/ircbot
- cslbot-parsedata /tmp/ircbot
- ./scripts/gendocs.sh
after_success:
./scripts/deploy_docs.sh
notifications:
irc:
channels: "chat.freenode.net#tjcsl-cslbot"
skip_join: true
use_notice: true