url-abuse/.travis.yml

57 lines
1.0 KiB
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
2019-02-04 13:05:59 +01:00
- git clone https://github.com/stricaud/faup.git
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