mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 08:04:49 +01:00
Rather than specifying the username and encrypted key in the Travis config, we just enable Sauce Connect and require SAUCE_USERNAME and SAUCE_ACCESS_KEY env vars to be set. This is so that the Karma tests have the same env vars available to them which they can use to check whether to run against Sauce Labs or not.
38 lines
603 B
YAML
38 lines
603 B
YAML
language: python
|
|
|
|
python:
|
|
- "2.6"
|
|
- "2.7"
|
|
|
|
os:
|
|
- linux
|
|
|
|
addons:
|
|
sauce_connect: true
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache/pip
|
|
- node_modules
|
|
|
|
sudo: false
|
|
|
|
install:
|
|
- "pip install 'argparse>=1.2.1' --allow-all-external"
|
|
- pip install boto certauth
|
|
- pip install git+https://github.com/esnme/ultrajson.git
|
|
- python setup.py -q install
|
|
- pip install coverage pytest-cov coveralls --use-mirrors
|
|
- npm install
|
|
|
|
before_script:
|
|
- export DISPLAY=:99.0
|
|
- sh -e /etc/init.d/xvfb start
|
|
|
|
script:
|
|
- python setup.py test
|
|
- cd karma-tests && make test
|
|
|
|
after_success:
|
|
coveralls
|