Browse Source

Perform functional tests also on macOS

pull/1182/head
Safihre 7 years ago
parent
commit
e6d481a2ba
  1. 24
      .travis.yml
  2. 2
      tests/testhelper.py

24
.travis.yml

@ -1,13 +1,21 @@
language: python
python:
- "2.7"
matrix:
include:
- os: linux
language: python
- os: osx
env: HOMEBREW_NO_AUTO_UPDATE=1
addons:
chrome: stable
before_script:
- sudo add-apt-repository ppa:jcfp -y
- sudo apt-get update -q
- sudo apt-get install sabnzbdplus chromium-chromedriver -y
- ln -s /usr/lib/chromium-browser/chromedriver ~/bin/chromedriver
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew cask install chromedriver;
else
sudo add-apt-repository ppa:jcfp -y;
sudo apt-get update -q;
sudo apt-get install sabnzbdplus chromium-chromedriver -y;
ln -s /usr/lib/chromium-browser/chromedriver ~/bin/chromedriver;
fi;
install:
- pip install --upgrade -r tests/requirements.txt

2
tests/testhelper.py

@ -77,7 +77,7 @@ def setUpModule():
try:
get_url_result()
# Woohoo, we're up!
return
break
except requests.ConnectionError:
time.sleep(1)
else:

Loading…
Cancel
Save