forked from LLNL/UnifyFS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
155 lines (143 loc) · 3.7 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
language: c
dist: bionic
os: linux
addons:
apt:
packages: &native_deps
- autoconf
- autoconf-archive
- automake
- build-essential
- cmake
- diffutils
- gfortran
- libhdf5-openmpi-dev
- libopenmpi-dev
- libtool-bin
- m4
- openmpi-bin
- pkg-config
jobs:
include:
- name: "Checkpatch"
before_install: skip
install: skip
before_script:
- eval $(./scripts/git_log_test_env.sh)
- export TEST_CHECKPATCH_SKIP_FILES
script: ./scripts/checkpatch.sh || test "$TEST_CHECKPATCH_ALLOW_FAILURE" = yes
- name: "GCC 4.9"
dist: xenial
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- *native_deps
- g++-4.9
env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
- name: "GCC 7.5"
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- *native_deps
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- name: "GCC 9.3"
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- *native_deps
- g++-9
env:
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
- name: "GCC 10.1"
addons:
apt:
update: true
sources:
- ubuntu-toolchain-r-test
packages:
- *native_deps
- g++-10
env:
- MATRIX_EVAL="CC=gcc-10 && CXX=g++-10"
before_install:
- eval "${MATRIX_EVAL}"
- echo kernel.yama.ptrace_scope=0 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- (cd $HOME/spack; git describe) || git clone https://github.com/spack/spack $HOME/spack
# Create packages.yaml to prevent building dependencies that time out
- |
test -f $HOME/spack/etc/spack/packages.yaml || cat > $HOME/spack/etc/spack/packages.yaml << ' EOF'
packages:
all:
target: [x86_64]
providers:
mpi: [openmpi]
autoconf:
buildable: False
externals:
- spec: "[email protected]"
prefix: /usr
automake:
buildable: False
externals:
- spec: "[email protected]"
prefix: /usr
cmake:
buildable: False
externals:
- spec: "[email protected]"
prefix: /usr/local/cmake-3.12.4
libtool:
buildable: False
externals:
- spec: "[email protected]"
prefix: /usr
m4:
buildable: False
externals:
- spec: "[email protected]"
prefix: /usr
openmpi:
buildable: False
externals:
- spec: "[email protected]"
prefix: /usr
pkg-config:
buildable: False
externals:
- spec: "[email protected]"
prefix: /usr
EOF
install:
- . $HOME/spack/share/spack/setup-env.sh
- spack install [email protected] && spack load [email protected]
- spack install mochi-margo ^mercury~boostsys ^libfabric fabrics=rxm,sockets,tcp && spack load argobots && spack load mercury && spack load mochi-margo
- spack install spath~mpi && spack load spath
# prepare build environment
- GOTCHA_INSTALL=$(spack location -i gotcha)
- SPATH_INSTALL=$(spack location -i spath)
script:
- export DISTCHECK_CONFIGURE_FLAGS="CC=$CC --with-gotcha=$GOTCHA_INSTALL --with-spath=$SPATH_INSTALL --enable-fortran"
- ./autogen.sh
- ./configure $DISTCHECK_CONFIGURE_FLAGS
- make distcheck V=1
cache:
directories:
- $HOME/spack
# Don't update the cache just because the spack lock file changed
before_cache:
- rm -f $HOME/spack/opt/spack/.spack-db/prefix_lock
after_failure:
- find . -type f -name "config.log" -execdir cat {} \;
- find . -type f -name "test-suite.log" -execdir cat {} \;