-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
66 lines (58 loc) · 2.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
56
57
58
59
60
61
62
63
64
65
# Ubuntu 14.04 Trusty support
sudo: required
dist: trusty
language: cpp
compiler: gcc
# workaround to exclude the default job
env:
matrix:
- TRAVIS_EMPTY_JOB_WORKAROUND=true
matrix:
exclude:
- env: TRAVIS_EMPTY_JOB_WORKAROUND=true
include:
# # check coding style
# - env: CASE=codingstyle
# addons:
# apt:
# sources:
# - llvm-toolchain-precise-3.7
# - ubuntu-toolchain-r-test
# packages:
# - clang-format-3.7
# check typical OGS builds
- env: CASE=FEM
- env: CASE=IPQC
- env: CASE=GEMS
addons:
apt:
sources:
- boost-latest
packages:
- libboost-thread1.55-dev
- libboost-filesystem1.55-dev
- libboost-regex1.55-dev
- env: CASE=LIS CMAKE_ARGS="-DLIS_INCLUDE_DIR=$TRAVIS_BUILD_DIR/lis-cmake-master/include -DLIS_LIBRARIES=$TRAVIS_BUILD_DIR/lis-cmake-master/build/lib/liblis.a"
addons:
apt:
packages:
- gfortran
- env: CASE=MPI
- env: CASE=PETSC CMAKE_ARGS="-DPETSC_DIR=/usr/lib/petscdir/3.4.2/"
install:
# Lis
- if [[ "$CASE" == "LIS" ]]; then wget https://github.com/norihiro-w/lis-cmake/archive/master.zip; fi
- if [[ "$CASE" == "LIS" ]]; then unzip master.zip && cd lis-cmake-master; fi
- if [[ "$CASE" == "LIS" ]]; then mkdir build && cd build && cmake .. && make && cd ../..; fi
# MPI
- if [[ "$CASE" == "MPI" ]]; then travis_retry sudo apt-get install -qq openmpi-bin libopenmpi-dev; fi
# PETSC
- if [[ "$CASE" == "PETSC" ]]; then travis_retry sudo apt-get install -qq libpetsc3.4.2-dev; fi
script:
- if [[ "$CASE" != "codingstyle" ]]; then mkdir build && cd build && cmake -DOGS_CONFIG=${CASE} $CMAKE_ARGS -DOGS_CPU_ARCHITECTURE=generic .. && cmake ..; fi
- if [[ "$CASE" != "codingstyle" ]]; then make; fi
# - if [[ "$CASE" == "codingstyle" ]]; then chmod +x ./scripts/ci/check_code_format.sh && ./scripts/ci/check_code_format.sh; fi
notifications:
email:
on_success: change
on_failure: always