-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
47 lines (38 loc) · 1.79 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
language: java
sudo: true
cache:
directories:
- $HOME/.m2
- $HOME/esmf
- $HOME/ESMF-INSTALL
- $HOME/openmpi-1.10.7-install
- $HOME/openmpi-2.1.2-install
# required because of OpenJDK bug https://github.com/travis-ci/travis-ci/issues/5227
addons:
hostname: cupidhost
before_script:
# Linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -q ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install gfortran libopenmpi-dev openmpi-bin openjdk-7-jdk -y ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0 ;fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start ;fi
# OSX
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gcc ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then $TRAVIS_BUILD_DIR/build_mpi.sh ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$HOME/openmpi-1.10.7-install/bin:$PATH ;fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export _JAVA_OPTIONS="-XstartOnFirstThread" ;fi
# common
- if [[ ! -d "$HOME/ESMF-INSTALL/ESMF_7_0_0/lib" ]]; then $TRAVIS_BUILD_DIR/build_esmf.sh ESMF_7_0_0 openmpi ;fi
- if [[ ! -d "$HOME/ESMF-INSTALL/ESMF_7_1_0_beta_snapshot_34/lib" ]]; then $TRAVIS_BUILD_DIR/build_esmf.sh ESMF_7_1_0_beta_snapshot_34 openmpi ;fi
- export ESMF_INSTALL_ROOT=$HOME/ESMF-INSTALL
osx_image: xcode9.1
matrix:
include:
- os: osx
env: JAVA_HOME=$(/usr/libexec/java_home)
- os: linux
jdk: oraclejdk8
script: cd $TRAVIS_BUILD_DIR/org.earthsystemmodeling.cupid.releng && mvn clean verify
after_failure: cat $TRAVIS_BUILD_DIR/org.earthsystemmodeling.cupid.test/target/work/data/.metadata/.log