mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
61 lines
1.9 KiB
YAML
61 lines
1.9 KiB
YAML
language: cpp
|
|
|
|
cache:
|
|
directories:
|
|
- clang
|
|
|
|
matrix:
|
|
include:
|
|
- os: osx
|
|
osx_image: xcode8.3
|
|
compiler: clang
|
|
|
|
before_install:
|
|
- export GRIDDIR=`pwd`
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]] && [ ! -e clang/bin ]; then wget $CLANG_LINK; tar -xf `basename $CLANG_LINK`; mkdir clang; mv clang+*/* clang/; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then export PATH="${GRIDDIR}/clang/bin:${PATH}"; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then export LD_LIBRARY_PATH="${GRIDDIR}/clang/lib:${LD_LIBRARY_PATH}"; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libmpc; fi
|
|
|
|
install:
|
|
- export CWD=`pwd`
|
|
- echo $CWD
|
|
- export CC=$CC$VERSION
|
|
- export CXX=$CXX$VERSION
|
|
- echo $PATH
|
|
- which autoconf
|
|
- autoconf --version
|
|
- which automake
|
|
- automake --version
|
|
- which $CC
|
|
- $CC --version
|
|
- which $CXX
|
|
- $CXX --version
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export LDFLAGS='-L/usr/local/lib'; fi
|
|
|
|
script:
|
|
- ./bootstrap.sh
|
|
- mkdir build
|
|
- cd build
|
|
- mkdir lime
|
|
- cd lime
|
|
- mkdir build
|
|
- cd build
|
|
- wget http://usqcd-software.github.io/downloads/c-lime/lime-1.3.2.tar.gz
|
|
- tar xf lime-1.3.2.tar.gz
|
|
- cd lime-1.3.2
|
|
- ./configure --prefix=$CWD/build/lime/install
|
|
- make -j4
|
|
- make install
|
|
- cd $CWD/build
|
|
- ../configure --enable-precision=single --enable-simd=SSE4 --enable-comms=none --with-lime=$CWD/build/lime/install
|
|
- make -j4
|
|
- ./benchmarks/Benchmark_dwf --threads 1 --debug-signals
|
|
- echo make clean
|
|
- ../configure --enable-precision=double --enable-simd=SSE4 --enable-comms=none --with-lime=$CWD/build/lime/install
|
|
- make -j4
|
|
- ./benchmarks/Benchmark_dwf --threads 1 --debug-signals
|
|
- make check
|
|
|