forked from NICTA/dora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 loc) · 810 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: python
python:
- "2.7"
- "3.4"
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- libatlas-base-dev
- gfortran
before_install:
- wget http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz
- tar -xvf nlopt-2.4.2.tar.gz
install:
- cd nlopt-2.4.2
- PYTHON=$(which python) ./configure --prefix=$(dirname $(dirname $(which python))) --enable-shared
- make
- make install
- cd $TRAVIS_BUILD_DIR
- pip install --upgrade pip
- pip install --upgrade pytest pytest-cov
- pip install codecov unipath requests
- pip install git+https://github.com/nicta/revrand.git@master#egg=revrand
- pip install matplotlib
- python setup.py install
script:
- py.test --cov=./
cache:
- apt
- pip
- directories:
- $HOME/.cache/pip
after_success:
- codecov