1 # Recipe for build and integration testing on Travis-CI
3 # Try beta version of new travis-yml checker
5 # For extra debugging of failed jobs, see
6 # https://docs.travis-ci.com/user/common-build-problems/#Troubleshooting-Locally-in-a-Docker-Image
12 # If we set 'ccache: true', Travis installs replacement ccache wrappers of system compilers, which we don't want,
13 # so we'll do our own ccache management.
14 # Note the heuristics for whether cache is shared or distinct:
15 # https://docs.travis-ci.com/user/caching/#Caches-and-build-matrices
19 # Note: if a cache store forks due to a stage with parallel jobs that Travis identifies as part of the same flow,
20 # we must make sure that the parallel jobs do not write to any of the same caches. Also note that all stages use the
21 # same cache, so early stage jobs may see caches from later stages from previous builds in the same branch.
22 - $HOME/.ccache_gromacs
24 # Allows us to build and install GROMACS in one CI stage, then use the installation in a subsequent stage
30 # Python 2.7 and 3.6 are the only generations provided by pyenv on Travis-CI out-of-the-box
37 - sourceline: 'ppa:ubuntu-toolchain-r/test'
53 # get exactly one Python version: the last listed patch version for the selected minor version
54 - pyenv whence python${PY} && export PY_VER=`pyenv whence python${PY} | tail -1`
55 - pyenv shell $PY_VER && pyenv shell
56 # - python-config --includes
57 - pyenv prefix ${PY_VER} && export PYTHON_PREFIX=`pyenv prefix ${PY_VER}`
58 - pyenv which python && export PYTHON=`pyenv which python`
59 - source ./ci_scripts/set_compilers
62 - export CCACHE_DIR=$HOME/.ccache_gromacs
64 - ./ci_scripts/install_gromacs_2019.sh
65 # Need to update infrastructure for new CMake version requirements to build against devel.
66 # - if [ "${TRAVIS_BRANCH}" != "master" ] ; then ./ci_scripts/install_gromacs_devel.sh ; fi
69 - export CCACHE_DIR=$HOME/.ccache_py
71 - pip install --upgrade pip setuptools
72 - pip install --upgrade packaging
73 - pip install --no-cache-dir --upgrade --no-binary ":all:" --force-reinstall networkx mpi4py MarkupSafe
74 - pip install pytest numpy networkx sphinx sphinx_rtd_theme
77 - source $HOME/install/gromacs_2019/bin/GMXRC && ./ci_scripts/pygmx_0_0_7.sh
78 - ./ci_scripts/sample_restraint.sh
79 # Need to update infrastructure for new CMake version requirements to build against devel.
81 # if [ "${TRAVIS_BRANCH}" != master ] ; then
82 # source $HOME/install/gromacs_devel/bin/GMXRC
83 # ./ci_scripts/pygmx_devel.sh
84 # ./ci_scripts/sample_restraint.sh