diff --git a/.travis.yml b/.travis.yml index 6da5e8dc2334b32cdca2e3f4bf93f089937b3fdc..1bcb84dd38df0b00ec2479c8997081924c242863 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: cpp -compiler: +compiler: - gcc os: - linux - osx @@ -13,18 +13,23 @@ notifications: email: recipients: - dilawar.s.rajput@gmail.com + - bhalla@ncbs.res.in + - aviralg@ncbs.res.in + - hrani@ncbs.res.in + - ray.subhasis@gmail.com + on_success: change on_failure: always env: - - CTEST_MODEL=Nightly + - CTEST_MODEL=Nightly cache: apt -before_script: +before_script: - sudo apt-get update -qq - - sudo apt-get install libxml2-dev libbz2-dev + - sudo apt-get install libxml2-dev libbz2-dev - sudo apt-get install libhdf5-serial-dev - sudo apt-get install python-numpy python-setuptools python-networkx - - sudo apt-get install make texinfo cmake + - sudo apt-get install make texinfo cmake - sudo apt-get install python-suds python-matplotlib - sudo apt-get install python-qt4-dev python-qt4-gl python-sip-dev libqt4-dev libopenscenegraph-dev - sudo apt-get install doxygen python-sphinx @@ -33,11 +38,11 @@ install: - wget ftp://ftp.gnu.org/gnu/gsl/gsl-1.16.tar.gz - tar -xzvf gsl-1.16.tar.gz - cd gsl-1.16 && ./configure --prefix=/usr && make && sudo make install && cd .. - - wget http://sourceforge.net/projects/sbml/files/libsbml/5.11.4/stable/libSBML-5.11.4-core-src.tar.gz - - tar -xzvf libSBML-5.11.4-core-src.tar.gz - - cd libsbml-5.11.4 && ./configure --prefix=/usr --with-zlib --with-bzip2 --with-libxml && make && sudo make install && cd .. -script: - - mkdir -p _build && cd _build && cmake -DCMAKE_INSTALL_PREFIX=`pwd`/_install -DDEBUG=ON -DWITH_DOC .. && make + - wget http://sourceforge.net/projects/sbml/files/libsbml/5.9.0/stable/libSBML-5.9.0-core-src.tar.gz + - tar -xzvf libSBML-5.9.0-core-src.tar.gz + - cd libsbml-5.9.0 && ./configure --prefix=/usr --with-zlib --with-bzip2 --with-libxml && make && sudo make install && cd .. +script: + - mkdir -p _build && cd _build && cmake -DCMAKE_INSTALL_PREFIX=`pwd`/_install -DDEBUG=ON .. && make after_success: - - ctest --output-on-failure + - ctest --output-on-failure diff --git a/data/matplotlibrc b/data/matplotlibrc new file mode 100644 index 0000000000000000000000000000000000000000..737f9d466449c7a5d43d3fa9ad088445ac27f5b5 --- /dev/null +++ b/data/matplotlibrc @@ -0,0 +1,11 @@ +# This is configuration file for matplotlib used in examples. +# We use this configuration file to test the examples. Copy this configuration +# file in the current working directory and run the snippet. + +# This configuration file does the followings: +# - plt.show() function become non-blocking. + +backend = qt4agg + +# This makes all plots non-blocking. +interactive = True diff --git a/moose-core b/moose-core index 62ba292eb794fc4e7cd4d703cae07b4c56ac8b79..21046e25ca1a667fa095d492d396cd69101e7f14 160000 --- a/moose-core +++ b/moose-core @@ -1 +1 @@ -Subproject commit 62ba292eb794fc4e7cd4d703cae07b4c56ac8b79 +Subproject commit 21046e25ca1a667fa095d492d396cd69101e7f14 diff --git a/test_examples.sh b/test_examples.sh new file mode 100755 index 0000000000000000000000000000000000000000..bfa9d9a4fbb9aa427d49ed8e4e02f723f031bfab --- /dev/null +++ b/test_examples.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -e +declare -i a +PYC=`which python` +RUNDIR=./_test_dir_moose-examples_ +echo "Creating $RUNDIR" +mkdir -p $RUNDIR +MATPLOTRC=data/matplotlibrc +echo "copying examples out of source" +cp -r moose-examples/* $RUNDIR/ +PYFILES=`find $RUNDIR -name "*.py"` +for pyf in $PYFILES; do + let a=a+1 + dn=`dirname $pyf` + fn=`basename $pyf` + # copy matplotlibrc file to working directory + cp $MATPLOTRC $dn/ + ( + cd $dn + echo "Executing $fn in directory $dn" + $PYC $fn + ) +done +echo "Total $a scripts run"