forked from minhprg/INGI2255-2018-Superform-QH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (32 loc) · 1.43 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
language: python
cache: pip
python:
- "3.6"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libxmlsec1-dev pkg-config
- sudo apt-get install curl
# command to install dependencies
install:
- pip install Flask
- SETUP_ENV=travis python superform/setup.py install
- pip3 install python-coveralls
- pip3 install pytest-cov
- pip3 install --upgrade git+https://github.com/UCL-INGI/ICTV.git
- pip3 install --upgrade git+https://github.com/UCL-INGI/ICTV-plugins.git
# command to run tests
before_script:
# configure ictv
- cd superform/
- cat superform/tests/ictv-server/hack1.py >> /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/ictv/pages/channel_page.py
- cat superform/tests/ictv-server/hack2.py >> /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/ictv/app.py
- ictv-setup-database --config superform/tests/ictv-server/ictv_config.yaml
# ugly hack but otherwise the server is not up when the tests are launched
- (ictv-webapp 0.0.0.0:8000 --config superform/tests/ictv-server/ictv_config.yaml &) && sleep 5
- python superform/tests/ictv-server/server-setup.py
script:
- cp superform/config.test.json superform/config.json
- export PYTHONPATH=$PYTHONPATH:$(pwd)
- py.test -ra --ignore=superform/tests/test_linkedin.py --ignore=superform/tests/test_facebook.py --ignore=superform/selenium/test_ictv.py --cov-config ../.coveragerc --cov=superform
after_success:
- coveralls