.travis.yml 569 Bytes
Newer Older
Damien Lespiau's avatar
Damien Lespiau committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
language: python
python:
    - 2.7

cache: pip

addons:
    apt:
        packages:
        - libmysqlclient-dev

services:
    - mysql

install:
    - npm install jshint
    - npm install karma
    - npm install karma-jasmine
    - npm install karma-firefox-launcher
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start
    - sleep 3 # give xvfb some time to start

before_script:
    - mysql -e 'create database patchwork;'
    - export SELENIUM_BROWSER=firefox
    - export PW_TEST_DB_USER=travis
    - export PW_TEST_DB_PASS=""

script: ./tests/test_all.sh