From f6423a0d326dbcb503ed0bdb53e3e97f0e3fd5be Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Mon, 23 May 2016 16:19:03 -0600 Subject: [PATCH 1/2] FortranChecks: hand through RANDOM123, Python --- src/FortranChecks/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FortranChecks/CMakeLists.txt b/src/FortranChecks/CMakeLists.txt index da93430ee9..b8bce8a4a3 100644 --- a/src/FortranChecks/CMakeLists.txt +++ b/src/FortranChecks/CMakeLists.txt @@ -71,6 +71,8 @@ if( BUILD_TESTING ) "-DDraco_TPL_INCLUDE_DIRS=${tmp}" "-DCMAKE_VERBOSE_MAKEFILE=TRUE" "-DDRACO_C4=${DRACO_C4}" + "-DRANDOM123_INCLUDE_DIR=${RANDOM123_INCLUDE_DIR}" + "-DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}" ) if( WIN32 ) # For Win32 builds, DLL and applications are built in the directory From b85ad1823eeab853ca57a12b9137b53caf547495 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Mon, 23 May 2016 16:28:23 -0600 Subject: [PATCH 2/2] .travis.yml: initial commit --- .travis.yml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..d067f58819 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,53 @@ +language: cpp + +sudo: false + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - ccache + - libgsl0-dev + - libopenmpi-dev + - openmpi-bin + - gcc-5 + - g++-5 + - gfortran-5 + - liblapack-dev + +before_install: + - if [[ ${GVER} ]]; then export CC=gcc-${GVER}; export CXX=g++-${GVER}; export FC=gfortran-${GVER}; fi + - cd $HOME && wget -qO- https://www.deshawresearch.com/downloads/download_random123.cgi/Random123-${RANDOM123_VER}.tar.gz | tar -xz && cd - + - cd $HOME && wget --no-check-certificate -qO- http://www.cmake.org/files/v${CMAKE_VERSION:0:3}/cmake-${CMAKE_VERSION}.tar.gz | tar -xz && cd - + - if [[ ${COVERAGE} ]]; then pip install --user codecov; for i in CC CXX FC; do eval export ${i}=\"${!i} --coverage\"; done; fi + - if [[ ${WERROR} ]]; then for i in CC CXX FC; do eval export ${i}=\"${!i} -Werror\"; done; fi + +env: + global: + - CCACHE_CPP2=yes + - GVER=5 + - CMAKE_VERSION=3.4.3-Linux-x86_64 + - RANDOM123_VER=1.09 + - J=2 + matrix: + - + - COVERAGE=ON + - WERROR=ON + +script: + # -Wl,--no-as-needed is a workaround for bugs.debian.org/457284 + - mkdir build && cd build && + ${HOME}/cmake-${CMAKE_VERSION}/bin/cmake -DRANDOM123_INCLUDE_DIR=${HOME}/Random123-${RANDOM123_VER}/include -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-as-needed" .. && + make -j${J} VERBOSE=1 && + make test ARGS="-E \(c4_tstOMP_2\|viz_tstEnsight_Translator\|cdi_ipcress_tIpcress_Interpreter_Al_BeCu_ipcress\|diagnostics_tDracoInfo\|diagnostics_tDracoInfo_version\|diagnostics_tDracoInfo_brief\|parser_driver4tstConsole_Token_Stream\|c4_tstOMP_1\)" && + make install DESTDIR="${HOME}" && cd - + +after_success: + - if [[ ${COVERAGE} ]]; then codecov --gcov-exec gcov-${GVER}; fi + +cache: + - ccache + +compiler: + - gcc