summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 4c2f8ab984940770b8d0fc30ef210af13691153b (plain)
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
language: python

python:
  - "2.7"
  - "3.5"

env:
  - DJANGO=1.8.13
  - DJANGO=1.9.5

# command to install dependencies
install:
  - if [[$TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install -r requirements/requirements-py2.txt; fi
  - if [[$TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install -r requirements/requirements-py3.txt; fi
  - pip install -q Django==$DJANGO

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -y scilab
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start

# command to run tests
script:
  - python manage.py test -v 2 yaksh
  - python manage.py test -v 2 yaksh.live_server_tests