forked from mnucci32/aither
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
95 lines (89 loc) · 2.35 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
language: cpp
branches:
only:
- master
- develop
cache:
directories:
- openmpi
- openmpi-2.0.1
# setup build matrix
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5 gcc-5 libstdc++-5-dev
env:
- CXX_COMPILER=g++-5
- C_COMPILER=gcc-5
- os: linux
dist: trusty
sudo: required
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6 gcc-6 libstdc++-6-dev
env:
- CXX_COMPILER=g++-6
- C_COMPILER=gcc-6
- os: linux
dist: trusty
sudo: required
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.8
packages:
- clang++-3.8 clang-3.8 libc++-dev libc++abi-dev
env:
- CXX_COMPILER=clang++-3.8
- C_COMPILER=clang-3.8
- os: osx
osx_image: xcode8
compiler: gcc
env:
- CXX_COMPILER=g++-6
- C_COMPILER=gcc-6
- HOMEBREW_CC=gcc-6
- HOMEBREW_CXX=g++-6
- os: osx
osx_image: xcode8
compiler: clang
env:
- CXX_COMPILER=clang++
- C_COMPILER=clang
- HOMEBREW_CC=clang
- HOMEBREW_CXX=clang++
# upgrade packages
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y python3; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gcc python3; fi
- test -n $CC && unset CC
- test -n $CXX && unset CXX
- which $CXX_COMPILER
# install mpi
install:
- bash travis/installMPI
# build instructions
script:
- mkdir build
- cd build
- cmake -G "Unix Makefiles" -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER -DMPI_DIR=$TRAVIS_BUILD_DIR/openmpi -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=install ..
- make -j4
- make install
- cd ../testCases
- python3 regressionTests.py --aitherPath=$TRAVIS_BUILD_DIR/build/install/bin/aither --operatingSystem=$TRAVIS_OS_NAME --mpirunPath=$TRAVIS_BUILD_DIR/openmpi/bin/mpirun