-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
69 lines (59 loc) · 2.11 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
sudo: true
language: c
branches:
only:
- master
- fix_open
cache:
directories:
- mpich
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
- BUILD_TYPE=Release
- MPIRUN_CMD=$TRAVIS_BUILD_DIR/mpich/bin/mpirun
- os: osx
osx_image: xcode9.4
compiler: clang
env:
- CXX_COMPILER=clang++
- C_COMPILER=clang
- HOMEBREW_CC=clang
- HOMEBREW_CXX=clang++
- BUILD_TYPE=Release
- MPIRUN_CMD=mpirun
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gcc; fi
- which $CXX_COMPILER
- which $C_COMPILER
install:
- bash ci/travis/install_mpi.sh
before_script:
- mkdir build
- cd build
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cmake ../ -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER -DMPI_DIR=$TRAVIS_BUILD_DIR/mpich -DMPI_DIR=$TRAVIS_BUILD_DIR/mpich -DMPI_C_INCLUDE_PATH=$TRAVIS_BUILD_DIR/mpich/include -DMPI_C_LIBRARIES=$TRAVIS_BUILD_DIR/mpich/lib/libmpich.so -DMPI_CXX_LIBRARIES=$TRAVIS_BUILD_DIR/mpich/lib/libmpicxx.so -DMPI_CXX_INCLUDE_PATH=$TRAVIS_BUILD_DIR/mpich/include -DPIDX_BUILD_EXAMPLES=ON; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cmake ../ -DPIDX_BUILD_EXAMPLES=ON; fi
- make -j 4
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ln -s idx_read.app/Contents/MacOS/idx_read examples/idx_read; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ln -s idx_write.app/Contents/MacOS/idx_write examples/idx_write; fi
- cd ../tools/test
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python test.py -w 2 -r 2 -m $MPIRUN_CMD -t; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python test.py -w 8 -r 8 -m $MPIRUN_CMD -t; fi
- sh travis_tests.sh
notifications:
email: false