-
Notifications
You must be signed in to change notification settings - Fork 133
/
.travis.yml
59 lines (49 loc) · 1.66 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# vim ft=yaml
# travis-ci.org definition for Nimfa tests
language: python
sudo: false
addons:
apt:
packages:
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
python:
- "2.7"
# - "3.4"
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update --yes conda
- sudo apt-get update
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION pip numpy scipy pytest matplotlib Pillow
- pip install pep8 python-coveralls pytest-cov
- pip install -e .
services:
- xvfb
before_script:
- wget http://files.grouplens.org/datasets/movielens/ml-100k.zip -P nimfa/datasets/MovieLens/
- unzip -j nimfa/datasets/MovieLens/ml-100k.zip -d nimfa/datasets/MovieLens/
- wget http://www.ai.mit.edu/courses/6.899/lectures/faces.tar.gz -P nimfa/datasets/CBCL_faces/
- tar zxvf nimfa/datasets/CBCL_faces/faces.tar.gz -C nimfa/datasets/CBCL_faces/
- tar zxvf nimfa/datasets/CBCL_faces/face.train.tar.gz -C nimfa/datasets/CBCL_faces/
- mv nimfa/datasets/CBCL_faces/train/face/ nimfa/datasets/CBCL_faces/
script:
- py.test --cov=nimfa
after_success:
- coveralls
# TODO Later if you decide to upload tagged releases to pypi automagically
# see https://docs.travis-ci.com/user/deployment/pypi/ for details
#deploy:
# provider: pypi
# distributions: sdist
# user: YOURUSERNAME
# password:
# secure: YOUR_ENCRYPTED_WITH_TRAVISTOOLS_PASSWORD_FOR_PYPI
# on:
# tags: true
# branch: master
# repo: YOURGITHUBLOGIN/nimfa
# condition: "$TRAVIS_PYTHON_VERSION == 2.7 && $TRAVIS_TAG =~ ^v[0-9]*[.][.0-9]*"