Skip to content

Commit f25e7dc

Browse files
authored
Travis -> GH Action (#823)
* Clang-Tidy-10: New Bugprone Checks * Travis -> GH Action Emergency migration.
1 parent b2664b7 commit f25e7dc

File tree

11 files changed

+428
-766
lines changed

11 files changed

+428
-766
lines changed

.clang-tidy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Future consideration: cppcoreguidelines-*,clang-analyzer-*,google-*,hicpp-*,llvm-*,misc-*,modernize-*,readability-*,-clang-diagnostic-unused-command-line-argument,-*-namespace-comment*,-*-braces-around-statements,-google-readability-todo,-readability-inconsistent-declaration-parameter-name,-readability-named-parameter
22
# FIXME: all performance-* reports
33
# FIXME: all cert-* reports
4-
Checks: -*,bugprone-*,cppcoreguidelines-slicing,mpi-*,readability-non-const-parameter,modernize-use-override,modernize-use-equals-default
4+
# FIXME: all bugprone-* reports
5+
Checks: -*,bugprone-*,-bugprone-unhandled-self-assignment,-bugprone-parent-virtual-call,-bugprone-narrowing-conversions,-bugprone-exception-escape,-bugprone-string-literal-with-embedded-nul,cppcoreguidelines-slicing,mpi-*,readability-non-const-parameter,modernize-use-override,modernize-use-equals-default
56
HeaderFilterRegex: '((^(?!\/share\/openPMD\/).*)*include\/openPMD\/.+\.hpp|src\/^(?!binding).+\.cpp$)'
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This is a Spack environment file.
2+
#
3+
# Activating and installing this environment will provide all dependencies
4+
# that are needed for full-feature development.
5+
# https//spack.readthedocs.io/en/latest/environments.html#anonymous-environments
6+
#
7+
spack:
8+
specs:
9+
- hdf5
10+
11+
packages:
12+
all:
13+
target: ['x86_64']
14+
variants: ~mpi ~fortran
15+
compiler: [[email protected]]
16+
17+
compilers:
18+
- compiler:
19+
environment: {}
20+
extra_rpaths: []
21+
flags: {}
22+
modules: []
23+
operating_system: ubuntu18.04
24+
paths:
25+
cc: /usr/lib/llvm-5.0/bin/clang
26+
cxx: /usr/lib/llvm-5.0/bin/clang++
27+
f77: null
28+
fc: null
29+
30+
target: x86_64
31+
32+
config:
33+
build_jobs: 2
34+
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# This is a Spack environment file.
2+
#
3+
# Activating and installing this environment will provide all dependencies
4+
# that are needed for full-feature development.
5+
# https//spack.readthedocs.io/en/latest/environments.html#anonymous-environments
6+
#
7+
spack:
8+
specs:
9+
- adios
10+
- adios2
11+
- hdf5
12+
- openmpi
13+
14+
packages:
15+
adios:
16+
variants: ~zfp ~sz ~lz4 ~blosc
17+
adios2:
18+
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
19+
cmake:
20+
externals:
21+
- spec: "cmake"
22+
prefix: /usr
23+
buildable: False
24+
openmpi:
25+
externals:
26+
- spec: "openmpi"
27+
prefix: /usr
28+
buildable: False
29+
perl:
30+
externals:
31+
- spec: "perl"
32+
prefix: /usr
33+
buildable: False
34+
python:
35+
externals:
36+
- spec: "python"
37+
prefix: /usr
38+
buildable: False
39+
all:
40+
target: ['x86_64']
41+
variants: ~fortran
42+
providers:
43+
mpi: [openmpi]
44+
compiler: [[email protected]]
45+
46+
compilers:
47+
- compiler:
48+
environment: {}
49+
extra_rpaths: []
50+
flags: {}
51+
modules: []
52+
operating_system: ubuntu18.04
53+
paths:
54+
cc: /usr/lib/llvm-5.0/bin/clang
55+
cxx: /usr/lib/llvm-5.0/bin/clang++
56+
f77: /usr/bin/gfortran
57+
fc: /usr/bin/gfortran
58+
59+
target: x86_64
60+
61+
config:
62+
build_jobs: 2
63+
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# This is a Spack environment file.
2+
#
3+
# Activating and installing this environment will provide all dependencies
4+
# that are needed for full-feature development.
5+
# https//spack.readthedocs.io/en/latest/environments.html#anonymous-environments
6+
#
7+
spack:
8+
specs:
9+
- adios
10+
- adios2
11+
- hdf5
12+
- openmpi
13+
14+
packages:
15+
adios:
16+
variants: ~zfp ~sz ~lz4 ~blosc
17+
adios2:
18+
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
19+
cmake:
20+
externals:
21+
- spec: "cmake"
22+
prefix: /usr
23+
buildable: False
24+
openmpi:
25+
externals:
26+
- spec: "openmpi"
27+
prefix: /usr
28+
buildable: False
29+
perl:
30+
externals:
31+
- spec: "perl"
32+
prefix: /usr
33+
buildable: False
34+
python:
35+
externals:
36+
- spec: "python"
37+
prefix: /usr
38+
buildable: False
39+
all:
40+
target: ['x86_64']
41+
variants: ~fortran
42+
providers:
43+
mpi: [openmpi]
44+
compiler: [[email protected]]
45+
46+
compilers:
47+
- compiler:
48+
environment: {}
49+
extra_rpaths: []
50+
flags: {}
51+
modules: []
52+
operating_system: ubuntu20.04
53+
paths:
54+
cc: /usr/lib/llvm-10/bin/clang
55+
cxx: /usr/lib/llvm-10/bin/clang++
56+
f77: /usr/bin/gfortran
57+
fc: /usr/bin/gfortran
58+
59+
target: x86_64
60+
61+
config:
62+
build_jobs: 2
63+
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This is a Spack environment file.
2+
#
3+
# Activating and installing this environment will provide all dependencies
4+
# that are needed for full-feature development.
5+
# https//spack.readthedocs.io/en/latest/environments.html#anonymous-environments
6+
#
7+
spack:
8+
specs:
9+
- adios
10+
- adios2
11+
- hdf5
12+
- openmpi
13+
14+
packages:
15+
adios:
16+
variants: ~zfp ~sz ~lz4 ~blosc
17+
adios2:
18+
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared ~bzip2
19+
cmake:
20+
externals:
21+
- spec: "cmake"
22+
prefix: /usr
23+
buildable: False
24+
openmpi:
25+
externals:
26+
- spec: "openmpi"
27+
prefix: /usr
28+
buildable: False
29+
perl:
30+
externals:
31+
- spec: "perl"
32+
prefix: /usr
33+
buildable: False
34+
python:
35+
externals:
36+
- spec: "python"
37+
prefix: /usr
38+
buildable: False
39+
all:
40+
target: ['x86_64']
41+
variants: ~fortran
42+
compiler: [[email protected]]
43+
44+
compilers:
45+
- compiler:
46+
environment: {}
47+
extra_rpaths: []
48+
flags: {}
49+
modules: []
50+
operating_system: ubuntu18.04
51+
paths:
52+
cc: /usr/bin/gcc-5
53+
cxx: /usr/bin/g++-5
54+
f77: /usr/bin/gfortran
55+
fc: /usr/bin/gfortran
56+
57+
target: x86_64
58+
59+
config:
60+
build_jobs: 2
61+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
#
3+
4+
set -eu -o pipefail
5+
6+
spack_ver="0.16.0"
7+
8+
# download
9+
cd /opt
10+
curl -sOL https://github.com/spack/spack/archive/v${spack_ver}.tar.gz
11+
tar -xf v${spack_ver}.tar.gz && rm v${spack_ver}.tar.gz
12+
mv spack-${spack_ver} spack
13+
14+
# install
15+
ln -s /opt/spack/bin/spack /usr/bin/spack
16+
17+
# add binary mirror
18+
spack mirror add E4S https://cache.e4s.io
19+
curl -sOL https://oaciss.uoregon.edu/e4s/e4s.pub
20+
spack gpg trust e4s.pub
21+
22+
# find compilers & external packages
23+
spack compiler find
24+
#spack external find
25+
26+
# accessible by regular CI user
27+
chmod a+rwx -R /opt/spack
28+
chmod a+rwx $HOME/.spack/

0 commit comments

Comments
 (0)