2018-03-22 18:11:39 +01:00
|
|
|
|
|
|
|
language: cpp
|
|
|
|
sudo: required
|
2019-10-20 20:02:40 +02:00
|
|
|
dist: bionic
|
2018-03-22 18:11:39 +01:00
|
|
|
|
|
|
|
compiler:
|
2019-10-20 20:02:40 +02:00
|
|
|
- gcc
|
2019-06-05 16:56:50 +02:00
|
|
|
- clang
|
2018-03-22 18:11:39 +01:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get update
|
2019-10-20 20:02:40 +02:00
|
|
|
- sudo apt-get install -y --allow-unauthenticated libblas-dev libboost-all-dev libfftw3-dev libgfortran3 libhdf5-serial-dev libgmp-dev liblapack-dev libopenmpi-dev libclang-dev python-clang-6.0 python-dev python-h5py python-mako python-matplotlib python-mpi4py python-numpy python-scipy python-sphinx libjs-mathjax libnfft3-dev
|
2018-03-22 18:11:39 +01:00
|
|
|
|
|
|
|
install: true
|
|
|
|
|
|
|
|
script:
|
2019-10-20 20:02:40 +02:00
|
|
|
- export INSTALL_DIR=$HOME/root_install # We install outside the repository
|
2018-03-22 18:11:39 +01:00
|
|
|
# ===== Set up TRIQS
|
2018-03-26 00:31:39 +02:00
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2018-03-22 18:11:39 +01:00
|
|
|
- git clone https://github.com/TRIQS/triqs --branch unstable
|
|
|
|
- mkdir triqs/build && cd triqs/build
|
2019-10-20 20:02:40 +02:00
|
|
|
- cmake .. -DBuild_Tests=OFF -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR
|
2019-06-26 16:55:03 +02:00
|
|
|
- make -j2 install
|
2018-03-26 00:31:39 +02:00
|
|
|
- source $INSTALL_DIR/share/triqsvars.sh
|
2018-04-06 15:10:42 +02:00
|
|
|
# ===== Set up app4triqs and test
|
2018-03-26 00:31:39 +02:00
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2018-03-22 18:11:39 +01:00
|
|
|
- mkdir build && cd build
|
2019-10-20 20:02:40 +02:00
|
|
|
- cmake .. -DASAN=ON -DUBSAN=ON
|
|
|
|
- export UBSAN_SYMBOLIZER_PATH=$(which llvm-symbolizer)
|
|
|
|
- export ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer)
|
2018-04-24 22:23:44 +02:00
|
|
|
- export UBSAN_OPTIONS=symbolize=1:print_stacktrace=1
|
2018-03-22 18:11:39 +01:00
|
|
|
- export ASAN_OPTIONS=symbolize=1:detect_leaks=0
|
|
|
|
- export CTEST_OUTPUT_ON_FAILURE=1
|
2019-06-26 16:55:03 +02:00
|
|
|
- make -j2 && make test
|