forked from LLNL/UnifyFS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
81 lines (74 loc) · 2.1 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
language: c
sudo: required
dist: xenial
addons:
apt:
update: true
packages:
- autoconf
- automake
- build-essential
- cmake
- gfortran
- libhdf5-openmpi-dev
- libopenmpi-dev
- libtool-bin
- m4
- openmpi-bin
before_install:
# The default environment variable $CC is known to interfere with
# MPI projects.
- test -n $CC && unset CC
- (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:
autoconf:
buildable: False
paths:
[email protected]: /usr
automake:
buildable: False
paths:
[email protected]: /usr
cmake:
buildable: False
paths:
[email protected]: /usr/local/cmake-3.12.4
libtool:
buildable: False
paths:
[email protected]: /usr
m4:
buildable: False
paths:
[email protected]: /usr
EOF
install:
- $HOME/spack/bin/spack install environment-modules
- . $HOME/spack/share/spack/setup-env.sh
- spack install leveldb
- spack install [email protected]
- spack install flatcc
- spack install margo^mercury+bmi~boostsys
# prepare build environment
- spack load environment-modules
- source <(spack module tcl loads leveldb [email protected] flatcc mercury argobots margo)
- eval $(./scripts/git_log_test_env.sh)
- export TEST_CHECKPATCH_SKIP_FILES
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
script:
# Force git to update the shallow clone and include tags so git-describe works
- git fetch --unshallow --tags
- sh autogen.sh
- ./configure --enable-fortran || cat config.log
- make -k && make distcheck
- ./scripts/checkpatch.sh || test "$TEST_CHECKPATCH_ALLOW_FAILURE" = yes
after_failure:
- find . -type f -name "test-suite.log" -execdir cat {} \;