.travis.yml 1.56 KB
Newer Older
1
2
3
language: cpp
compiler:
  - clang
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
sudo: false
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - libpcre3
      - libpcre3-dev
      - gromacs
      - swig
      - doxygen
      - clang-3.3
      - llvm-3.3
      - python-numpy
      - python-scipy
      - python-sphinx
      - python-yaml
      - python-pip
      - python-virtualenv
23

Robert McGibbon's avatar
Robert McGibbon committed
24
env:
25
26
27
  matrix:
    - OPENMM_BUILD_STATIC_LIB="OFF"
    - OPENMM_BUILD_STATIC_LIB="ON"
Robert McGibbon's avatar
Robert McGibbon committed
28

29
before_install:
30
31
  - export CC=clang
  - export CXX=clang++
32
  - export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.3
33

34
script:
35
36
  - virtualenv --system-site-packages openmm_env
  - source openmm_env/bin/activate
Robert T. McGibbon's avatar
Robert T. McGibbon committed
37
  - cmake -DCMAKE_INSTALL_PREFIX=$HOME/OpenMM -DOPENMM_BUILD_STATIC_LIB=$OPENMM_BUILD_STATIC_LIB .
38
39
  - make -j2
  - make -j2 install
40
  - make PythonInstall
41
42
  - # Run the testInstallation script
  - python -m simtk.testInstallation
43
  - # run all of the tests, making sure failures at this stage don't cause travis failures
44
  - ctest -j2 || true
45
46
47
  - # 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
48
  - if [ -s Testing/Temporary/LastTestsFailed.log ]; then ctest -I FailedTests.log; fi;
49
50
  - # run the python tests too
  - cd python/tests
51
  - pip install nose
52
  - nosetests -vv --processes=-1 --process-timeout=200
Robert T. McGibbon's avatar
Robert T. McGibbon committed
53
  - cd -