forked from SEL-Columbia/formhub
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
31 lines (31 loc) · 1.15 KB
/
.travis.yml
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
31
language: python
services:
- mongodb
python:
- "2.7"
before_install:
- mysql -e 'create database formhub_test;'
- sudo apt-get install gfortran libatlas-base-dev libjpeg-dev zlib1g-dev
# See https://gist.github.com/dan-blanchard/7045057
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
- conda create --yes -n condaenv python=2.7
- conda install --yes -n condaenv pip
- source activate condaenv
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
install:
# - pip install numpy --use-mirrors
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy pandas=0.12.0
- pip install -r requirements.pip --use-mirrors
- pip install -r requirements-mysql.pip --use-mirrors
- python manage.py syncdb --noinput
- python manage.py migrate --noinput
script:
- python manage.py test --noinput --settings=formhub.preset.travis_test
- ./js_tests/EnvJasmine/bin/run_all_tests.sh --testDir=../ --configFile=../env_jasmine.conf.js
notifications:
irc: "irc.freenode.org#sel-columbia"