url-abuse/.travis.yml

52 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2015-10-29 14:26:44 +01:00
language: python
python:
2019-02-04 13:55:54 +01:00
- "3.6"
- "3.6-dev"
- "3.7-dev"
2015-10-29 14:26:44 +01:00
2015-10-29 15:33:15 +01:00
sudo: required
2019-02-04 13:55:54 +01:00
dist: xenial
2015-10-29 15:33:15 +01:00
2015-10-29 14:26:44 +01:00
install:
2019-02-04 13:55:54 +01:00
- pip install pipenv
- pushd ..
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
2016-01-19 14:48:36 +01:00
# redis
2019-02-04 13:55:54 +01:00
- git clone https://github.com/antirez/redis.git
2016-01-19 14:48:36 +01:00
- pushd redis
2019-02-04 13:55:54 +01:00
- git checkout 5.0
2016-01-19 14:48:36 +01:00
- make
- popd
# Run uwhoisd
2019-02-04 13:55:54 +01:00
- git clone https://github.com/Rafiot/uwhoisd.git
2016-01-19 14:48:32 +01:00
- pushd uwhoisd
2019-02-04 13:55:54 +01:00
- pipenv install
- echo UWHOISD_HOME="'`pwd`'" > .env
- pipenv run start.py
- popd
# Get back in the project directory
2016-01-19 14:48:32 +01:00
- popd
2016-01-19 14:48:36 +01:00
# Other Python deps
2019-02-04 14:31:20 +01:00
- pipenv install
2019-02-04 13:55:54 +01:00
- echo URLABUSE_HOME="'`pwd`'" > .env
2015-10-29 14:26:44 +01:00
2015-10-29 16:11:42 +01:00
before_script:
2019-02-04 13:55:54 +01:00
- cp website/config/config.ini.sample website/config/config.ini
2015-10-29 16:11:42 +01:00
2015-10-29 14:26:44 +01:00
script:
2019-02-04 14:31:20 +01:00
- pipenv run start.py
2019-02-04 16:09:23 +01:00
- sleep 2
2019-02-04 14:40:09 +01:00
- pipenv run start_website.py &
2019-02-04 16:09:23 +01:00
- sleep 5
2019-02-04 14:31:20 +01:00
- curl http://0.0.0.0:5200/
2019-02-04 16:09:23 +01:00
- pushd client
- python tests/tests.py
- popd