Skip to content

Commit

Permalink
Move PyMB install to install block and make sure that rpy2 imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Nafis Sadat committed Aug 6, 2018
1 parent e2c7198 commit 6408603
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ before_install:
cache: packages


## Set up conda environment and TMB
## Set up conda environment, TMB and PyMB
install:
- conda create -c conda-forge -n pymb_test -y python=3.6 numpy scipy libiconv libxml2 lxml scikit-sparse
- source activate pymb_test
- pip install rpy2
- R -e 'install.packages("Matrix", repos="http://cran.us.r-project.org", dependencies=T)'
- R -e 'install.packages("TMB", repos="http://cran.us.r-project.org", dependencies=T)'
- conda install -c r -y r-base rpy2
- /home/travis/miniconda3/bin/R -e 'install.packages("Matrix", repos="http://cran.us.r-project.org", dependencies=T)'
- /home/travis/miniconda3/bin/R -e 'install.packages("TMB", repos="http://cran.us.r-project.org", dependencies=T)'
- cd ../PyMB && python setup.py install && python -c "import rpy2.rinterface as rinterface"


jobs:
include:
- stage: Install PyMB and run examples
- stage: Run PyMB tests
script:
- bin/01_pymb_install.sh
- bin/02_pymb_linreg.sh

notifications:
Expand Down
1 change: 1 addition & 0 deletions bin/02_pymb_linreg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
set -e # Exit with nonzero exit code if anything fails

## Run linreg example
source activate pymb_test
python Examples/linreg.py

0 comments on commit 6408603

Please sign in to comment.