.travis.yml 978 Bytes
Newer Older
1
2
3
4
5
language: cpp
compiler:
  - clang

before_install:
6
7
  - sudo apt-get update -qq
  - sudo apt-get install -qq libpcre3 libpcre3-dev gromacs
Robert McGibbon's avatar
Robert McGibbon committed
8
  - sudo apt-get install -qq swig doxygen llvm-3.3
9
  - sudo apt-get install -qq python-numpy python-scipy python-nose
Robert McGibbon's avatar
Robert McGibbon committed
10
  - export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.3
11

12
script:
Robert McGibbon's avatar
Robert McGibbon committed
13
  - cmake -DCMAKE_INSTALL_PREFIX=$HOME/OpenMM .
14
15
  - make -j2
  - make -j2 install
Robert McGibbon's avatar
Robert McGibbon committed
16
  - sudo make PythonInstall
Robert McGibbon's avatar
Robert McGibbon committed
17
  - # run all of the tests
18
  - ctest -j2 -V
Robert McGibbon's avatar
Robert McGibbon committed
19
20
21
  - # get a list of all of the failed tests into this stupid ctest format
  - python -c 'fn = "Testing/Temporary/LastTestsFailed.log"; import os; os.path.exists(fn) or exit(0); l = [line.split(":")[0] for line in open(fn)]; triplets = zip(l, l, [","]*len(l)); print "".join(",".join(t) for t in triplets)' > FailedTests.log
  - # rerun all of the failed tests
Robert McGibbon's avatar
Robert McGibbon committed
22
  - if [ -s FailedTests.log ]; then ctest -V -I FailedTests.log; fi;
Robert McGibbon's avatar
Robert McGibbon committed
23
  - # run the python tests too
Robert McGibbon's avatar
Robert McGibbon committed
24
  - cd python/tests
Robert McGibbon's avatar
Robert McGibbon committed
25
  - nosetests -vv