-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
55 lines (45 loc) · 1.02 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
sudo: required
language: c
os:
- linux
compiler:
- gcc
branches:
only:
- master
addons:
# For Linux, make sure we have some extra packages that we like to
# build with
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- autoconf
- automake
- libtool
- gcc-5
cache:
directories:
- mpich
- mpich-3.2.1
# upgrade packages
before_install:
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
# - test -n $CC && unset CC
# - test -n $CXX && unset CXX
# install mpi
install:
- bash ci/travis/install_mpi.sh
- ls $TRAVIS_BUILD_DIR/mpich/
- export PATH=$TRAVIS_BUILD_DIR/mpich/bin:$PATH
- export INCLUDE=$TRAVIS_BUILD_DIR/mpich/include:$INCLUDE
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/mpich/lib:$TRAVIS_BUILD_DIR/mpich/lib64:$LD_LIBRARY_PATH
- echo $PATH
before_script:
- ./autogen.sh
- mkdir build
- cd build
# build instructions
script:
- ../configure --disable-stack-protector
- make -j 4 CC=mpicc