1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 01:05:38 +01:00
Grid/.travis.yml

62 lines
1.9 KiB
YAML
Raw Normal View History

2016-04-30 14:29:41 +01:00
language: cpp
2016-05-01 18:43:14 +01:00
2016-06-14 19:07:01 +01:00
cache:
directories:
- clang
2016-04-30 14:29:41 +01:00
matrix:
include:
2016-05-01 18:43:14 +01:00
- os: osx
osx_image: xcode8.3
2016-05-01 18:43:14 +01:00
compiler: clang
2018-08-28 18:26:37 +01:00
env: PREC=single
- os: osx
osx_image: xcode8.3
compiler: clang
env: PREC=double
2016-05-01 18:43:14 +01:00
before_install:
2016-06-14 19:07:01 +01:00
- 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
2016-05-01 19:18:58 +01:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
2018-08-28 17:10:08 +01:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libmpc openssl; fi
2016-08-30 14:44:10 +01:00
2016-05-01 18:43:14 +01:00
install:
2018-05-14 19:56:12 +01:00
- export CWD=`pwd`
- echo $CWD
2016-05-01 18:43:14 +01:00
- export CC=$CC$VERSION
- export CXX=$CXX$VERSION
2016-06-14 19:07:01 +01:00
- echo $PATH
2017-05-05 21:25:35 +01:00
- which autoconf
- autoconf --version
- which automake
- automake --version
2016-06-14 19:07:01 +01:00
- which $CC
- $CC --version
- which $CXX
- $CXX --version
2016-05-01 19:32:28 +01:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export LDFLAGS='-L/usr/local/lib'; fi
2018-08-28 17:10:08 +01:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export EXTRACONF='--with-openssl=/usr/local/opt/openssl'; fi
2016-08-30 14:44:10 +01:00
2016-05-01 18:43:14 +01:00
script:
2016-08-01 09:38:40 +01:00
- ./bootstrap.sh
2016-05-01 18:43:14 +01:00
- mkdir build
- cd build
2018-05-14 19:56:12 +01:00
- 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
2018-08-28 18:26:37 +01:00
- ../configure --enable-precision=$PREC --enable-simd=SSE4 --enable-comms=none --with-lime=$CWD/build/lime/install ${EXTRACONF}
- make -j4
2017-04-13 10:35:20 +01:00
- ./benchmarks/Benchmark_dwf --threads 1 --debug-signals
2017-05-05 20:42:08 +01:00
- make check