-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (37 loc) · 1.32 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
34
35
36
37
38
language: python
python:
- "2.7"
branch:
only:
- master
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install -e .
# command to run tests
env:
- PATH=./firefox:${PATH}
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# - sudo apt-get install libxss1 xdg-utils -y
# - wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# - sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
# - sudo apt-get update
# - sudo apt-get install google-chrome-stable
# - wget https://chromedriver.googlecode.com/files/chromedriver_linux32_26.0.1383.0.zip -O chromedriver.zip
# - unzip chromedriver.zip
# - sudo cp chromedriver /usr/local/bin
# - sudo chmod 755 /usr/local/bin/chromedriver
# - wget http://selenium.googlecode.com/files/selenium-server-standalone-2.32.0.jar -O selenium-server.jar
# - java -jar selenium-server.jar > /dev/null &
- wget http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/20.0/linux-i686/en-US/firefox-20.0.tar.bz2
- tar -xjf firefox-20.0.tar.bz2
script:
- cd flask_report/test/
- python splinter_tests.py
notifications:
email:
recipients:
- abc549825@163.com
- xiechao06@gmail.com