forked from selective-inference/Python-software
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (52 loc) · 1.72 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
# https://gist.github.com/dan-blanchard/7045057
language: python
python:
- 2.7
- 3.3
notifications:
email: false
# Setup anaconda
before_install:
- 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
# The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# Install packages
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy scipy matplotlib nose dateutil pandas statsmodels scikit-learn
# Coverage packages are on my binstar channel
- conda install --yes -c dan_blanchard python-coveralls nose-cov
# Install R and rpy2
- conda install --yes -c r r-essentials
- pip install rpy2
# Install selectiveInference
- git clone https://github.com/selective-inference/R-software.git
- cd R-software
# Install intervals -- hacky!!
- python -c "import rpy2.robjects as rpy; rpy.r('''install.packages('intervals', repos='http://cran.r-project.org')''')"
- R CMD INSTALL selectiveInference
- cd ..
# Install regreg
- git clone https://github.com/jonathan-taylor/regreg.git
- cd regreg
- pip install -r requirements.txt
- pip install -e .
- cd ..
# Install choldate -- hopefully we can drop this dependency
- git clone https://github.com/jcrudy/choldate.git
- cd choldate
- pip install -e .
- cd ..
# Install selection
- pip install -r requirements.txt
- pip install -e .
# Run test
script:
- ./tools/noseall_with_coverage
# Calculate coverage
after_success:
- if [ "${COVERAGE}" == "1" ]; then coveralls; fi