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

2
tests/testhelper.py

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

Loading…
Cancel
Save