-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
66 lines (55 loc) · 1.84 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
60
61
62
63
64
65
66
os: linux
dist: xenial
# only one TRAVIS_PYTHON_VERSION
language: python
python:
- 2.7
# matrix of several CONDA_PYTHON_VERSIONs
env:
jobs:
- CONDA_PYTHON_VERSION=2.7 MPL_VERSION=2.2
- CONDA_PYTHON_VERSION=3.6 MPL_VERSION=3.3
- CONDA_PYTHON_VERSION=3.7 MPL_VERSION=3.3
- CONDA_PYTHON_VERSION=3.8 MPL_VERSION=3.3
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- gfortran
#don't install LaTeX (yet)
#- texlive-extra-utils
#- texlive-latex-extra
- dvipng
#don't install ROOT yet
#- root-system
before_install:
# get miniconda
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O $HOME/miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $HOME/miniconda.sh;
fi
# install miniconda in batch mode and add to PATH
- bash $HOME/miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
# configure conda for batch mode
- conda config --set always_yes yes --set changeps1 no
# update conda and show package/environment information
- conda update -q conda
- conda info -a
# install some dependencies with conda and activate environment
- conda create -q -n kafe_env python=$CONDA_PYTHON_VERSION numpy scipy tk
- source activate kafe_env
# upgrade pip to latest version and install iminuit with pip
- pip install --upgrade pip
- pip install --upgrade matplotlib==$MPL_VERSION
- if [[ $CONDA_PYTHON_VERSION == 2.7 ]]; then pip uninstall minuit && pip install iminuit==1.2; else pip install --upgrade 'iminuit<2'; fi
# output python version to log
- python --version
install:
# install kafe from current directory using pip
- pip install -e .
script:
# run unittests with setup.py
- python setup.py test