-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (38 loc) · 1.09 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
#
# rssbot2 travis-ci config
#
language: python
python: 3.6
os: linux
services:
# - cassandra
# - couchdb
- elasticsearch
- memcached
# - mongodb
# - mariadb
- mysql
# - postgresql
# - rabbitmq
- redis
# - riak
install: pip3 install -r requirements.txt
before_script:
- mysql -u root -e "create database travis_test;"
- mysql -u root -e "create user travisci identified by 'travisci'; grant all on travis_test.* to travisci;"
script:
- python3 setup.py --help
- python3 setup.py -u travisci -p travisci -d travis_test -h localhost
# The add_feed.py script won't work via travis-ci's public CI system,
# due to the outbound HTTP requests that it makes,
# so it should output the following message for each feed:
#
# HTTP Status not found.
# HTTP request error. Process halted.
#
- python3 add_feed.py -u https://phys.org/rss-feed/ -a
- python3 add_feed.py -u https://hackaday.com/blog/feed/ -a
- python3 add_feed.py -u https://www.wired.com/feed/rss -a
# These commands (above) should at least help reveal any other basic
# exceptions that we DO want to detect.
- python3 runner.py