forked from datajoint/datajoint-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (24 loc) · 986 Bytes
/
.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
sudo: required
language: python
env:
- DJ_TEST_HOST="127.0.0.1" DJ_TEST_USER="datajoint" DJ_TEST_PASSWORD="datajoint" DJ_HOST="127.0.0.1" DJ_USER="datajoint" DJ_PASS="datajoint" BOTO_CONFIG="/tmp/bogusvalue"
python:
- "3.4"
- "3.5"
- "3.6"
services: mysql
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libblas-dev liblapack-dev libatlas-dev gfortran
- sudo apt-get install -y graphviz graphviz-dev pkg-config
- mysql -e "create user 'datajoint'@'%' identified by 'datajoint'; GRANT ALL PRIVILEGES ON \`djtest\_%\`.* TO 'datajoint'@'%';" -uroot
- mysql -e "create user 'djview'@'%' identified by 'djview'; GRANT SELECT ON \`djtest\_%\`.* TO 'djview'@'%';" -uroot
install:
- travis_wait 30 pip install -r requirements.txt
- travis_wait 30 pip install -r test_requirements.txt
- pip install nose nose-cov python-coveralls
# command to run tests
script:
- nosetests -vv --with-coverage --cover-package=datajoint
after_success:
- coveralls