-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (31 loc) · 840 Bytes
/
.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
34
35
36
37
38
39
dist: xenial
language: python
python:
- "3.6"
env:
- MOZ_HEADLESS=1
addons:
firefox: latest
apt:
packages:
- python3-pip
services:
- docker
install:
- pip install selenium
- pip install kazoo
- pip install pytest
- pip install pytest-httpserver
- pip install pytest-html
- pip install pytest-selenium
- pip install pyTelegramBotAPI
before_install:
- docker run -d zookeeper
- docker build -t rbmd .
- docker run -d --network="host" rbmd
- wget https://github.com/mozilla/geckodriver/releases/download/v0.21.0/geckodriver-v0.21.0-linux64.tar.gz
- tar -xvf geckodriver-v0.21.0-linux64.tar.gz
- export PATH=$PATH:$PWD
script:
- PYTEST_HTTPSERVER_PORT=9076 py.test -s test/selenium_tests.py --html=report.html --self-contained-html --driver Firefox
- python test/telegram_notification.py