1 language: cpp 2 compiler: 3 - gcc 4 - clang 5 install: 6 - sudo add-apt-repository --yes ppa:kalakris/cmake 7 - sudo add-apt-repository --yes ppa:fenics-packages/fenics-exp/swig 8 - sudo apt-get update -qq 9 - sudo apt-get install -y -qq swig3.0 python git cmake 10 - sudo ln -s /usr/bin/swig3.0 /usr/bin/swig 11 - sudo update-java-alternatives -s java-8-oracle 12 before_script: 13 - if [ "$CC" = "gcc" ]; then export BUILDJAVA=ON; else export BUILDJAVA=OFF; fi 14 - export JAVA_HOME=/usr/lib/jvm/java-8-oracle 15 script: 16 - mkdir build && cd build && cmake -DBUILDSWIGJAVA=$BUILDJAVA -DNODE_ROOT_DIR:PATH=/home/travis/.nvm/v0.10.36/include .. && make && make test 17