Skip to content

Commit

Permalink
tests: Add travis file
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
  • Loading branch information
Damien Lespiau committed Mar 4, 2016
1 parent a81992b commit ec1bea4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
tags
TAGS
!.gitignore
!.travis.yml

# configuration files
patchwork/settings/production.py
Expand Down
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit ec1bea4

Please sign in to comment.