-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (30 loc) · 1.6 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
32
33
34
35
36
37
38
39
dist: trusty
services: postgres
language: python
python:
- 3.4
- 3.5
env:
- DB=sqlite
- DB=postgres
notifications:
email: false
slack:
secure: NOCG2XTdrDlRwaZxiGUMSJgufAgeg5rTqy/DPw5BrTK4aPKLflP86ZwS2tvscWY/ikpORKoCJ4I/cvni9YUcC59JqE2gEifIDuW51hDpiEtIFAK2tCD6aFVHpG1tK8oUJF/dE6/1Gmwso6KzNT+6+Xle6mdqtxeb9zAxBDSt4MWCYJfmkpqKOpPa9hYSMwk+TLJpEDlFCnDjJ1YcMyJy9gDa3LY5nIH6xJlVfG4lPyrKSrNgLuhN/EKvF8rgHObQhGOGFhh4HM620T1atml7DNRiRcSgPmKrNQb2TpiuJjvgKI2UyKD6rzbnScGKXd1MHz4kgscqPLTcxqTdmk0bkR7BssN0GV7cYmMcTZL74isJDDc4tboR/FopgrYLQNJAeoZJt6XhM1sJzuqDmfRBz5myjC6iWrjW7o6PCkvyCTCfT8KPv7Bj803F9GAkjReD6Vzs9bd/YSLDlntAFmjNj31ghLY4Opkj91idFP47sueVs4uzr4/WYB1gTZHi3co4SJBYXSypItjB8QwhGFK12vVauXoPL/XjABicMHdoHN0OS/3UK9bBigxlcU9RC7qovqT6EY/eHjNAkj5un5uE0erA8sBgT2+eBmWojkrO8zFu0aN8gaYcKHcbBJ1LS0OC0CjvEyq1qA7o5YDvtnaz3ZvFtz0iD4M4CEN9vT+eJ8M=
before_install:
- sudo sed -i '/^::1/d' /etc/hosts && sudo sed -i '/^127\.0\.1\.1/d' /etc/hosts
- 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/miniconda2/bin:$PATH
- conda update --yes conda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database classrank_test' -U postgres; fi"
- sh -c "if [ '$DB' = 'postgres' ]; then export CONNECTION='postgres://postgres@localhost/classrank_test'; fi"
install:
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION numpy scipy scikit-learn pip libgfortran
- source activate test
- pip install -r requirements.txt
script: nosetests -c .noserc
after_success: coveralls