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

View File

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

View File

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