1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
language: c
sudo: false
dist: trusty
addons:
apt:
packages: &common_pkgs
- autoconf
- automake
- libtool
- guile-2.0-dev
- liblapack-dev
- libblas-dev
- gfortran
- git
- libfftw3-dev
before_script:
- git clone https://github.com/stevengj/libctl
- (cd libctl && git checkout master && sh autogen.sh --prefix=$HOME/local && make && make install)
script:
- |
sh autogen.sh \
--enable-maintainer-mode \
--prefix=$HOME/local \
--with-libctl=$HOME/local/share/libctl \
${MPI_FLAG} \
${HERM_EPS} \
${INV_SYM} \
GEN_CTL_IO=$HOME/local/bin/gen-ctl-io \
CPPFLAGS="-I$HOME/local/include ${CPPFLAGS}" \
LDFLAGS="-L$HOME/local/lib ${LDFLAGS}"
- make && make check && make install
matrix:
include:
- os: linux
env:
- MPI_FLAG=
- HERM_EPS=
- INV_SYM=
addons:
apt:
packages:
- *common_pkgs
- libhdf5-serial-dev
- os: linux
env:
- MPI_FLAG="--with-mpi CC=mpicc"
- HERM_EPS=--with-hermitian-eps
- INV_SYM=
addons:
apt:
packages:
- *common_pkgs
- libopenmpi-dev
- mpi-default-bin
- openmpi-bin
- libfftw3-mpi-dev
- libhdf5-openmpi-dev
- os: osx
env:
- MPI_FLAG=
- HERM_EPS=
- INV_SYM=--with-inv-symmetry
install:
- brew update
- brew install guile fftw lapack
|