# Travis-CI configuration

language: cpp

os:
  - linux
#- osx

# Limit number of commits in cloning
git:
  depth: 10

# Install dependencies cached on CIG server
install:
  - if [ $TRAVIS_OS_NAME == linux ]; then TARBALL=pylith_deps-ubuntu-12.04-amd64.tgz
  - mkdir -p dist && pushd dist && curl -O http://geoweb.cse.ucdavis.edu/~buildbot/deps/$TARBALL && tar -zxvf $TARBALL && popd

script: mkdir -p build && pushd build && autoreconf --install --verbose --force $TRAVIS_BUILD_DIR && $TRAVIS_BUILD_DIR/configure --enable-swig --enable-testing --enable-pythia --prefix=$TRAVIS_BUILD_DIR/dist CPPFLAGS=-I$TRAVIS_BUILD_DIR/dist/include LDFLAGS=-L$TRAVIS_BUILD_DIR/dist/lib && make && make install && make check && popd

env:
  global:
    - PATH=$TRAVIS_BUILD_DIR/dist:$PATH
    - PYTHONPATH=$TRAVIS_BUILD_DIR/dist/lib/python2.7/site-packages:$PYTHONPATH
    - LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/dist/lib:$LD_LIBRARY_PATH

# Travis-CI configuration

language: cpp

os:
  - linux
#- osx

# Limit number of commits in cloning
git:
  depth: 10

# Install dependencies cached on CIG server
install:
  - if [ $TRAVIS_OS_NAME == linux ]; then TARBALL=pylith_deps-ubuntu-12.04-amd64.tgz; fi
  - mkdir -p dist && pushd dist && curl -O http://geoweb.cse.ucdavis.edu/~buildbot/deps/$TARBALL && tar -zxvf $TARBALL && popd

script: mkdir -p build && pushd build && autoreconf --install --verbose --force $TRAVIS_BUILD_DIR && $TRAVIS_BUILD_DIR/configure --enable-swig --enable-testing --enable-pythia --prefix=$TRAVIS_BUILD_DIR/dist CPPFLAGS=-I$TRAVIS_BUILD_DIR/dist/include LDFLAGS=-L$TRAVIS_BUILD_DIR/dist/lib && make && make install && make check && popd

env:
  global:
    - PATH=$TRAVIS_BUILD_DIR/dist:$PATH
    - PYTHONPATH=$TRAVIS_BUILD_DIR/dist/lib/python2.7/site-packages:$PYTHONPATH
    - LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/dist/lib:$LD_LIBRARY_PATH

Fix syntax error in if.
Fix syntax error in if.
