forked from lanl/LATTE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (51 loc) · 2.52 KB
/
.travis.yml
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
language: c
sudo: required
dist: trusty
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
os:
- linux
before_install:
- export LATTEPATH=`pwd`
- sudo apt-get install gfortran libblas-dev liblapack-dev
- sudo apt-get install cmake python gcc cmake-data g++ curl
- cd; git clone --depth=1 https://github.com/lanl/qmd-progress.git
- cd; git clone --depth=1 https://github.com/lanl/bml.git
- cd; git clone --depth=1 https://github.com/lammps/lammps.git
- pip install --user codecov
# Install BML, PROGRESS and LAMMPS
- cd; cd bml; CC=gcc FC=gfortran CMAKE_BUILD_TYPE=Release BLAS_VENDOR=GNU BML_OPENMP=yes BML_TESTING=no ./build.sh configure
- cd; cd bml/build; make; make install
- cd; cd qmd-progress; CC=gcc FC=gfortran PROGRESS_MPI=no PROGRESS_TESTING=yes BLAS_VENDOR=GNU PKG_CONFIG_PATH=~/bml/install/lib/pkgconfig PROGRESS_OPENMP=yes ./build.sh configure
- cd; cd qmd-progress/build; make; make install
# Lammps installation
- cd; cd lammps/lib/latte; ln -s $LATTEPATH/src/latte_c_bind.o filelink.o ; ln -s $LATTEPATH/src includelink ; ln -s $LATTEPATH liblink
- cd; cd lammps/lib/latte; cp Makefile.lammps.gfortran Makefile.lammps
- cd; cd lammps/lib/latte; echo "latte_SYSLIB += -fprofile-arcs -ftest-coverage -O0" >> Makefile.lammps
- cd; cd lammps/src/; if [[ ${LATTE_CMAKE} != yes ]]; then make yes-latte; make yes-molecule; fi
before_script:
- cd; cd $LATTEPATH
env:
- OPTIONS="CVR=ON" TEST="" CHOICES=gfort.lapack
- OPTIONS="CVR=ON PROGRESS=ON" TEST="" CHOICES=gfort.lapack
- OPTIONS="CVR=ON MAKELIB=ON lammps" TEST="_lmp" CHOICES=gfort.lapack
- LATTE_CMAKE=yes CMAKE_WITH_PROGRESS=yes
- LATTE_CMAKE=yes LAMMPS_CMAKE=yes
- LATTE_PERFORMANCE=yes TEST="" CHOICES=gfort.lapack
# - LATTE_PERFORMANCE=yes OPTIONS="CVR=ON PROGRESS=ON" TEST="" CHOICES=gfort.lapack
script:
- cp -f -v ./makefiles/makefile.CHOICES.${CHOICES:-gfort.lapack} makefile.CHOICES
- if [[ ! ${LATTE_CMAKE} ]]; then
make ${OPTIONS} && make test${TEST};
else
mkdir build && cd build && cmake ../cmake -DCMAKE_INSTALL_PREFIX=$HOME/latte/install -DPROGRESS=${CMAKE_WITH_PROGRESS} -DOPENMP=${CMAKE_WITH_PROGRESS} -DCMAKE_PREFIX_PATH="$HOME/bml/install;$HOME/qmd-progress/install" && make && make install &&
if [[ ${LAMMPS_CMAKE} ]]; then
cd $HOME/lammps && mkdir build && cd build && cmake ../cmake -DPKG_LATTE=ON -DCMAKE_PREFIX_PATH=$HOME/latte/install && make;
fi
fi
after_success:
- bash <(curl -s https://codecov.io/bash) -v -X gcov
- codecov
cache:
- ccache