12 - IMAGE=debian:stretch
13 - UPDATE_CMD="apt-get update"
14 - UPGRADE_CMD="apt-get full-upgrade -y"
15 - INSTALL_CMD="apt-get install -y autoconf automake libtool autopoint
16 gettext pkg-config cmake make g++ libglib2.0-dev libpurple-dev
17 libsigc++-2.0-dev libncursesw5-dev python3 doxygen graphviz"
20 - echo "Starting run ${IMAGE}"
21 - docker run -d --name ${NAME} -v $(pwd):/travis ${IMAGE} tail -f /dev/null
24 - docker exec -t ${NAME} bash -c "${UPDATE_CMD}"
25 - docker exec -t ${NAME} bash -c "${UPGRADE_CMD}"
26 - docker exec -t ${NAME} bash -c "${INSTALL_CMD}"
29 # Check the autotools build.
30 - docker exec -t ${NAME} bash -c "cd /travis;
31 ./bootstrap && ./configure && make distcheck"
32 # Check the cmake build.
33 - docker exec -t ${NAME} bash -c "cd /travis;
34 mkdir distcheck-cmake && cd distcheck-cmake &&
35 tar -xvzf ../centerim5-*.tar.gz && cmake centerim5-* &&
37 # Build the documentation.
38 - docker exec -t ${NAME} bash -c "cd /travis; make doc"