language: cpp

services:
  - docker

branches:
    only:
        - master
  
notifications:
  email: false
  slack: aices-pcm-cfd:ShncJAFCJzx48zt8hrXpRwGw

before_install:
- docker pull zimmerman/nsb-pcm:latest

script:
- echo $TRAVIS_COMMIT
- docker run -e TRAVIS_COMMIT=$TRAVIS_COMMIT -P -v `pwd`:/home/nsb-pcm:rw zimmerman/nsb-pcm /bin/sh -c "cd nsb-pcm; git pull; git checkout $TRAVIS_COMMIT; cd build; cmake ..; make; ctest -j2"

language: cpp

services:
  - docker

branches:
    only:
        - master
  
notifications:
  email: false
  slack: aices-pcm-cfd:ShncJAFCJzx48zt8hrXpRwGw

before_install:
- docker pull dealii/dealii:v8.5.0-gcc-mpi-fulldepscandi-debugrelease

script:
- ls
- docker run -P -v `pwd`:/home/dealii:rw dealii/dealii:v8.5.0-gcc-mpi-fulldepscandi-debugrelease /bin/sh -c "cd nsb-pcm; mkdir build; cd build; cmake ..; make; ctest -j2"

Build and test files local to Travis
Build and test files local to Travis

Maybe I've been going about this entirely wrong, because I didn't understand the basics of what Travis was doing. Now we just pull the deal.II docker image and build the nsb-pcm source that Travis pulled from GitHub.