.travis.yml 2.2 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
30
31
32
  global:
    # encrypted AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to push docs to s3
    - secure: "VVKz+yOMbKsskR+PfU1HfKBWdGYYrmIXNWQz4nqXCjtg2MRCQmjDulFZaPVDvsBzis9BUhnzAQrBYUrAtN8bZSTYRg7ADFVGdPFicg3Sv0owcghTQwokIvbw3G+HDz/WAnFmqEhqm3t5pNVWNinyHpMM3zYZOVKagyj53cwAM0M="
    - secure: "W2iPU6ooMujfzJNw9ElaEB8Go1rlNFJ5zEldr3FaH7SDRwqtqNOEp9CegCeG/hHtjg1j8TMyytQtvW+OaMKFIbq7Qqu7nIfwIFTV45vBHW6uwT/jAq/J3EgZ8K7JGyysVVHk86D8jT+xu90YVH5Tx/w97luxHOQGfSK8alhCszw="

33
before_install:
34
35
  - export CC=clang
  - export CXX=clang++
36
  - export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.3
37

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

after_success:
Robert McGibbon's avatar
Robert McGibbon committed
59
60
  # Get libraries necessary for building docs and pushing
  # them to S3
61
  - pip install sphinxcontrib-bibtex boto
Robert McGibbon's avatar
Robert McGibbon committed
62
63
64
  - make DoxygenApiDocs
  - make sphinxhtml
  - python devtools/ci/push-docs-to-s3.py