.travis.yml 1.57 KB
Newer Older
1
2
3
4
5
language: python
python:
  - "2.7_with_system_site_packages"
  - "3.4"

6
7
8
9
10
11
12
13
14
15
16
17
sudo: false
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - libpcre3
      - libpcre3-dev
      - gromacs
      - doxygen
      - python-numpy
      - python-scipy
18

19

Robert McGibbon's avatar
Robert McGibbon committed
20
env:
21
22
23
  matrix:
    - OPENMM_BUILD_STATIC_LIB="OFF"
    - OPENMM_BUILD_STATIC_LIB="ON"
Robert McGibbon's avatar
Robert McGibbon committed
24

25
before_install:
26
27
  - export CC=clang
  - export CXX=clang++
28
29
30
31
32
33

  - wget https://anaconda.org/anaconda/swig/3.0.2/download/linux-64/swig-3.0.2-0.tar.bz2
  - mkdir $HOME/swig
  - tar -xjvf swig-3.0.2-0.tar.bz2 -C $HOME/swig
  - export PATH=$HOME/swig/bin:$PATH
  - export SWIG_LIB=$HOME/swig/share/swig/3.0.2
34

35
script:
Robert T. McGibbon's avatar
Robert T. McGibbon committed
36
  - cmake -DCMAKE_INSTALL_PREFIX=$HOME/OpenMM -DOPENMM_BUILD_STATIC_LIB=$OPENMM_BUILD_STATIC_LIB .
37
38
  - make -j2
  - make -j2 install
39
  - make PythonInstall
40
41
  - # Run the testInstallation script
  - python -m simtk.testInstallation
42
  - # run all of the tests, making sure failures at this stage don't cause travis failures
43
  - ctest -j2 || true
44
  - # get a list of all of the failed tests into this stupid ctest format
45
  - python -c "import os; fn = os.path.join('Testing', 'Temporary', 'LastTestsFailed.log'); os.path.exists(fn) or exit(0); failed = [line.split(':')[0] for line in open(fn)]; print(','.join(x+','+x for x in failed))" > FailedTests.log
46
  - # rerun all of the failed tests
47
  - if [ -s Testing/Temporary/LastTestsFailed.log ]; then ctest -I FailedTests.log; fi;
48
  - # run the python tests too
49
50
51
52
  - cd python/tests  
  - # nosetests -vv --processes=-1 --process-timeout=200
  - # nosetests -vv
  - py.test -v *
Robert T. McGibbon's avatar
Robert T. McGibbon committed
53
  - cd -