mirror of https://github.com/CIRCL/url-abuse
fix: Rewrite travis file
parent
65ca6007f0
commit
c51a8408cc
45
.travis.yml
45
.travis.yml
|
@ -1,17 +1,16 @@
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "3.6"
|
||||||
|
- "3.6-dev"
|
||||||
|
- "3.7-dev"
|
||||||
|
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: trusty
|
dist: xenial
|
||||||
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- parallel
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- pip install pipenv
|
||||||
|
- pushd ..
|
||||||
# Faup
|
# Faup
|
||||||
- git clone https://github.com/stricaud/faup.git
|
- git clone https://github.com/stricaud/faup.git
|
||||||
- pushd faup/build
|
- pushd faup/build
|
||||||
|
@ -19,38 +18,32 @@ install:
|
||||||
- sudo make install
|
- sudo make install
|
||||||
- sudo ldconfig
|
- sudo ldconfig
|
||||||
- popd
|
- popd
|
||||||
- pushd faup/src/lib/bindings/python
|
|
||||||
- python setup.py install
|
|
||||||
- popd
|
|
||||||
# redis
|
# redis
|
||||||
|
- git clone https://github.com/antirez/redis.git
|
||||||
- pushd redis
|
- pushd redis
|
||||||
|
- git checkout 5.0
|
||||||
- make
|
- make
|
||||||
- popd
|
- popd
|
||||||
# Run uwhoisd
|
# Run uwhoisd
|
||||||
|
- git clone https://github.com/Rafiot/uwhoisd.git
|
||||||
- pushd uwhoisd
|
- pushd uwhoisd
|
||||||
- python setup.py install
|
- pipenv install
|
||||||
- ../redis/src/redis-server extra/redis.conf --daemonize yes
|
- echo UWHOISD_HOME="'`pwd`'" > .env
|
||||||
|
- pipenv run start.py
|
||||||
|
- popd
|
||||||
- sleep 10
|
- sleep 10
|
||||||
- uwhoisd extra/uwhoisd.ini &
|
# Get back in the project directory
|
||||||
- popd
|
- popd
|
||||||
# Other Python deps
|
# Other Python deps
|
||||||
- pip install -r requirements.txt
|
- pipenv install -d
|
||||||
- pip install coveralls
|
- echo URLABUSE_HOME="'`pwd`'" > .env
|
||||||
- pip install codecov
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- cp config.ini.sample config.ini
|
- cp website/config/config.ini.sample website/config/config.ini
|
||||||
- redis/src/redis-server --port 6334 --daemonize yes
|
|
||||||
- sleep 10
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./worker.py &
|
- pipenv run start.py &
|
||||||
- ./runapp.py &
|
|
||||||
- sleep 5
|
- sleep 5
|
||||||
|
- pipenv run start_website.py &
|
||||||
- curl http://0.0.0.0:5100/
|
- curl http://0.0.0.0:5100/
|
||||||
- sleep 20
|
- sleep 20
|
||||||
|
|
||||||
after_success:
|
|
||||||
- coveralls
|
|
||||||
- codecov
|
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ pipenv install
|
||||||
echo URLABUSE_HOME="'`pwd`'" > .env
|
echo URLABUSE_HOME="'`pwd`'" > .env
|
||||||
pipenv shell
|
pipenv shell
|
||||||
# Copy and review the configuration:
|
# Copy and review the configuration:
|
||||||
cp config.ini.sample config.ini
|
cp website/config/config.ini.sample website/config/config.ini
|
||||||
# Starts all the backend
|
# Starts all the backend
|
||||||
start.py
|
start.py
|
||||||
# Start the web interface
|
# Start the web interface
|
||||||
|
|
Loading…
Reference in New Issue