-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.travis.yml
49 lines (44 loc) · 1.46 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
##
## Build with Travis.CI
##
## https://travis-ci.org/thomasWeise/distributedComputingExamples
#
language: java
# By default, it runs under Java 7
jdk:
- oraclejdk7
- openjdk7
- oraclejdk8
# Cache Maven dependencies to speed up builds.
cache:
directories:
- $HOME/.m2
# custom build step
script:
- ./make_linux.sh
before_install:
# make sure GCC is installed
- sudo apt-get -q -y autoclean
- sudo apt-get -q -y update
- sudo apt-get -q -y install
- sudo apt-get -q -y install gcc binutils-mingw-w64-i686 gcc-mingw-w64-i686
# fix for buffer overflows in getLocalHostName
# https://github.com/travis-ci/travis-ci/issues/5227
- cat /etc/hosts # optionally check the content *before*
- sudo hostname "$(hostname | cut -c1-63)"
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
- cat /etc/hosts # optionally check the content *after*
# Install MPICH based on https://github.com/travis-ci/apt-package-whitelist/issues/406
- currentDir=`pwd`
- mpichVersion=3.2
- wget --no-check-certificate -q http://www.mpich.org/static/downloads/$mpichVersion/mpich-$mpichVersion.tar.gz
- tar -xzf mpich-$mpichVersion.tar.gz
- cd mpich-$mpichVersion
- mkdir build && cd build
- sudo ../configure CC=$CC CXX=$CXX --disable-fortran --disable-romio
- sudo make -j2
- sudo make install
- cd "$currentDir"
# prevent Maven from running
install:
- echo "Nothing."