1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

travis integration test fixes: removed caching of pip from .travis.yml (#431)

update pip and setuptools when running install.sh found in .travis

use xenial

removed trailing dash

only run webrecorder-tests using chrome and firefox

only run webrecorder-tests using pywbtest and chrometest marker expression
This commit is contained in:
John Berlin 2019-01-30 15:06:24 -05:00
parent c86add9b40
commit 9be9815da4
3 changed files with 10 additions and 12 deletions

View File

@ -5,15 +5,12 @@ python:
- "3.5" - "3.5"
- "3.6" - "3.6"
os: dist: xenial
- linux
addons: addons:
chrome: stable
firefox: latest
sauce_connect: true sauce_connect: true
apt:
packages:
# This is required to run new chrome on old trusty
- libnss3
env: env:
- WR_TEST=no - WR_TEST=no
@ -22,17 +19,17 @@ env:
cache: cache:
directories: directories:
- $HOME/.cache/pip
- node_modules - node_modules
sudo: true sudo: required
install: install:
- ./.travis/install.sh - ./.travis/install.sh
before_script: before_install:
- export DISPLAY=:99.0 - "sysctl kernel.unprivileged_userns_clone=1"
- sh -e /etc/init.d/xvfb start - "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script: script:
- ./.travis/test.sh - ./.travis/test.sh

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
set -e set -e
pip install --upgrade pip setuptools
python setup.py -q install python setup.py -q install
pip install -r extra_requirements.txt pip install -r extra_requirements.txt
pip install coverage pytest-cov coveralls pip install coverage pytest-cov coveralls

View File

@ -6,5 +6,5 @@ if [ "$WR_TEST" = "no" ]; then
cd karma-tests && make test && cd .. cd karma-tests && make test && cd ..
else else
cd webrecorder-tests cd webrecorder-tests
INTRAVIS=1 pytest -m "pywbtest" INTRAVIS=1 pytest -m "pywbtest and chrometest"
fi fi