forked from ALaDyn/ALaDyn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (52 loc) · 4.75 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
language: cpp
os:
- linux
- osx
compiler:
- gcc
addons:
apt:
packages:
- gfortran
- libopenmpi-dev
- libboost-all-dev
- libfftw3-dev
before_install:
# OSX Setup
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask uninstall oclint ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gcc ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link gcc ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install open-mpi ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install fftw ;fi
install:
# OSX Setup
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export FC=/usr/local/bin/gfortran-8 ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CC=/usr/local/bin/gcc-8 ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CXX=/usr/local/bin/g++-8 ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CMAKE_Fortran_COMPILER=$FC ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CMAKE_C_COMPILER=$CC ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CMAKE_CXX_COMPILER=$CXX ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CMAKE_LINKER=clang++ ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OMPI_MPICXX=$CXX ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OMPI_CXX=$CXX ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OMPI_MPICC=$CC ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OMPI_CC=$CC ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OMPI_MPIF90=$FC ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OMPI_FC=$FC ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OMPI_MPIF77=$FC ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OMPI_F77=$FC ;fi
# Linux Setup
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX="/usr/bin/g++" ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CC="/usr/bin/gcc" ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export FC="/usr/bin/gfortran" ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export OMPI_MPICXX=$CXX ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export OMPI_CXX=$CXX ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export OMPI_MPICC=$CC ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export OMPI_CC=$CC ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export OMPI_MPIF90=$FC ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export OMPI_FC=$FC ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export OMPI_MPIF77=$FC ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export OMPI_F77=$FC ;fi
script:
- mkdir build && cd build && cmake .. && cmake --build . --target install