url-abuse/.travis.yml

56 lines
975 B
YAML
Raw Normal View History

2015-10-29 14:26:44 +01:00
language: python
python:
- "2.7"
2015-10-29 15:33:15 +01:00
sudo: required
2016-01-19 14:48:36 +01:00
dist: trusty
2015-10-29 15:33:15 +01:00
addons:
apt:
packages:
- parallel
2015-10-29 14:26:44 +01:00
install:
2016-01-19 14:48:36 +01:00
# Faup
2015-10-29 16:03:54 +01:00
- pushd faup/build
2015-10-29 15:33:15 +01:00
- cmake .. && make
- sudo make install
- sudo ldconfig
2015-10-29 15:43:56 +01:00
- popd
2015-10-29 16:14:24 +01:00
- pushd faup/src/lib/bindings/python
2015-10-29 16:03:54 +01:00
- python setup.py install
2015-10-29 15:43:56 +01:00
- popd
2016-01-19 14:48:36 +01:00
# redis
- pushd redis
- make
- popd
# Run uwhoisd
2016-01-19 14:48:32 +01:00
- pushd uwhoisd
- python setup.py install
2016-01-19 14:48:36 +01:00
- ../redis/src/redis-server extra/redis.conf --daemonize yes
- sleep 10
- uwhoisd extra/uwhoisd.ini &
2016-01-19 14:48:32 +01:00
- popd
2016-01-19 14:48:36 +01:00
# Other Python deps
- pip install -r requirements.txt
2015-10-29 14:26:44 +01:00
- pip install coveralls
- pip install codecov
2015-10-29 16:11:42 +01:00
before_script:
2016-01-19 14:48:36 +01:00
- cp config.ini.sample config.ini
- redis/src/redis-server --port 6334 --daemonize yes
- sleep 10
2015-10-29 16:11:42 +01:00
2015-10-29 14:26:44 +01:00
script:
2015-10-29 17:07:15 +01:00
- ./worker.py &
- ./runapp.py &
2016-01-19 14:48:36 +01:00
- sleep 5
- curl http://0.0.0.0:5100/
- sleep 20
2015-10-29 17:07:15 +01:00
after_success:
- coveralls
- codecov