-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2604 from boutproject/v5.0.0-rc
BOUT++ v5.0.0 release candidate
- Loading branch information
Showing
1,476 changed files
with
109,016 additions
and
107,948 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/bin/sh | ||
## Copied script from arpack-ng. Please submit fixes also to | ||
## arpack-ng (if applicable) | ||
## -e : Make sure all errors cause the script to fail | ||
## -x be verbose; write what we are doing, as we do it | ||
set -ex | ||
## Should we init a container? | ||
if [ ".$1" = .setup ] || [ ".$1" = .podman ] | ||
then | ||
# fedora | ||
# note: when you PR, docker-cp provides, in the container, the branch associated with the PR (not master where there's nothing new) | ||
# 1. docker create --name mobydick IMAGE CMD <=> create a container (= instance of image) but container is NOT yet started | ||
# 2. docker cp -a ${TRAVIS_BUILD_DIR} mobydick:/tmp <=> copy git repository (CI worker, checkout-ed on PR branch) into the container | ||
# note: docker-cp works only if copy from/to containers (not images) | ||
# 3. docker start -a mobydick <=> start to run the container (initialized with docker-cp) | ||
if test $1 = podman ; then | ||
cmd=podman | ||
else | ||
cmd="sudo docker" | ||
fi | ||
test . != ".$2" && mpi="$2" || mpi=openmpi | ||
test . != ".$3" && version="$3" || version=latest | ||
time $cmd pull registry.fedoraproject.org/fedora:$version | ||
time $cmd create --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \ | ||
--name mobydick registry.fedoraproject.org/fedora:$version \ | ||
/tmp/BOUT-dev/.ci_fedora.sh $mpi | ||
time $cmd cp ${TRAVIS_BUILD_DIR} mobydick:/tmp | ||
time $cmd start -a mobydick | ||
exit 0 | ||
fi | ||
|
||
test . != ".$1" && mpi="$1" || mpi=openmpi | ||
|
||
## If we are called as root, setup everything | ||
if [ $UID -eq 0 ] | ||
then | ||
cat /etc/os-release | ||
# Ignore weak depencies | ||
echo "install_weak_deps=False" >> /etc/dnf/dnf.conf | ||
time dnf -y install dnf-plugins-core python3-pip cmake | ||
# Allow to override packages - see #2073 | ||
time dnf copr enable -y davidsch/fixes4bout || : | ||
time dnf -y upgrade | ||
time dnf -y builddep bout++ | ||
useradd test | ||
cp -a /tmp/BOUT-dev /home/test/ | ||
chown -R test /home/test | ||
chmod u+rwX /home/test -R | ||
sudo -u test ${0/\/tmp/\/home\/test} $mpi | ||
## If we are called as normal user, run test | ||
else | ||
pip install --user zoidberg | ||
. /etc/profile.d/modules.sh | ||
module load mpi/${1}-x86_64 | ||
export OMPI_MCA_rmaps_base_oversubscribe=yes | ||
export TRAVIS=true | ||
export FLEXIBLAS=NETLIB | ||
cd | ||
cd BOUT-dev | ||
echo "starting configure" | ||
time cmake -DBOUT_USE_PETSC=ON -S . -B build | ||
time make -C build build-check -j 2 | ||
time make -C build check | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Clang-format whole repo | ||
d8f14fdddb5ca0fbb32d8e2bf5ac2960d6ac5ce6 | ||
ed2117e6d6826a98b6988e2f18c0c34e408563b6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: black | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**.py' | ||
- 'bin/**' | ||
- '**/runtest' | ||
- '**/run' | ||
- 'tests/integrated/test_suite' | ||
- 'tests/requirements/*' | ||
- 'tools/tokamak_grids/**' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
black: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Install black | ||
run: | | ||
sudo apt update -y | ||
sudo apt -y install python3-pip python3-setuptools python3-wheel | ||
pip3 install black | ||
- name: Version | ||
run: | | ||
python3 --version | ||
$HOME/.local/bin/black --version | ||
- name: Run black | ||
run: | | ||
pwd | ||
ls | ||
$HOME/.local/bin/black tests/ tools/ $(grep -EIlr '^#!.*python.*$' bin/ tests/ tools/ src/ | grep -v _boutpp_build) | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "Apply black changes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.