-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/refactor-lineage-class
- Loading branch information
Showing
11 changed files
with
168 additions
and
109 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,20 +1,23 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: '3.9' | ||
apt_packages: | ||
- pandoc | ||
|
||
sphinx: | ||
builder: html | ||
configuration: docs/source/conf.py | ||
fail_on_warning: false | ||
|
||
formats: | ||
- htmlzip | ||
|
||
build: | ||
image: latest | ||
|
||
python: | ||
version: 3.8 | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs | ||
|
||
formats: | ||
- htmlzip |
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 |
---|---|---|
@@ -1,23 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ev | ||
set -euo pipefail | ||
|
||
if [[ "$RUNNER_OS" == "Linux" ]]; then | ||
echo "Installing APT dependencies" | ||
# https://github.com/yarnpkg/yarn/issues/7866 | ||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | ||
# R-related | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 | ||
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" | ||
echo "Fetching Yarn GPG key" | ||
# https://github.com/yarnpkg/yarn/issues/7866 | ||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | ||
|
||
sudo apt update -y | ||
sudo apt install libopenblas-base r-base r-base-dev r-cran-mgcv -y | ||
echo "Installing R" | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 | ||
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" | ||
|
||
if [[ "$USE_SLEPC" == "true" ]]; then | ||
echo "Installing PETSc/SLEPc dependencies" | ||
sudo apt install gcc gfortran libopenmpi-dev libblas-dev liblapack-dev petsc-dev slepc-dev -y | ||
fi | ||
elif [[ "$RUNNER_OS" != "macOS" ]]; then | ||
echo "Invalid OS for dependencie installations: $OS" | ||
exit 42 | ||
fi | ||
echo "Installing APT dependencies" | ||
sudo apt update -y | ||
sudo apt install libopenblas-base r-base r-base-dev r-cran-mgcv -y |
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
function install_petsc { | ||
echo "Installing PETSc; version: '$PC_VERSION', dir: '$PETSC_DIR' with arch: '$PETSC_ARCH'" | ||
curl -O "https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-$PC_VERSION.tar.gz" | ||
tar -xzf "petsc-lite-$PC_VERSION.tar.gz" | ||
pushd "petsc-$PC_VERSION" | ||
./configure --with-cc=mpicc --with-fc=0 --with-cxx=mpicxx --with-debugging=0 --with-mpi=1 | ||
make all | ||
make check | ||
popd | ||
} | ||
|
||
function install_slepc { | ||
echo "Installing SLEPc; version: '$SC_VERSION', dir: '$SLEPC_DIR'" | ||
curl -O "https://slepc.upv.es/download/distrib/slepc-$SC_VERSION.tar.gz" | ||
tar -xzf "slepc-$SC_VERSION.tar.gz" | ||
pushd "slepc-$SC_VERSION" | ||
./configure | ||
make all | ||
make check | ||
popd | ||
} | ||
|
||
echo "Installing PETSc/SLEPc dependencies" | ||
sudo apt-get update -y | ||
sudo apt-get install gcc gfortran libopenmpi-dev libblas-dev liblapack-dev -y | ||
|
||
pushd "$HOME" | ||
install_petsc | ||
install_slepc | ||
popd |
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 @@ | ||
Fix PETSc/SLEPc in CI for Linux. For now, macOS PETSc/SLEPc remains disabled. |
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