-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update environments, stacks, dev workflows, scripting (#60)
* update scripts to automate environments section * update outputs for env tutorial * Update and automate dev workflow section (#56) * update dev section * update scripting section * update environment and stack scripts Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
- Loading branch information
Showing
87 changed files
with
5,975 additions
and
1,704 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
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,43 @@ | ||
#!/bin/bash | ||
|
||
# Source definitions | ||
project=$(dirname "$0") | ||
. $project/defs.sh | ||
|
||
rm -rf $raw_outputs/dev | ||
pip install boto3 | ||
|
||
example dev/up-to-date "git clone https://github.com/spack/spack ~/spack" | ||
example dev/up-to-date "cd ~/spack" | ||
cd ~/spack | ||
example dev/up-to-date "git checkout releases/v0.15" | ||
example dev/up-to-date ". share/spack/setup-env.sh" | ||
. share/spack/setup-env.sh | ||
spack config add "config:suppress_gpg_warnings:true" | ||
spack config add "packages:all:target:[x86_64]" | ||
|
||
example dev/up-to-date "spack mirror add tutorial s3://spack-tutorial-container/mirror/" | ||
example dev/up-to-date "spack gpg trust share/spack/keys/tutorial.pub" | ||
|
||
example dev/setup-hwloc "cd ~" | ||
cd ~ | ||
example dev/setup-hwloc "git clone https://github.com/open-mpi/hwloc.git" | ||
example dev/setup-hwloc "cd hwloc" | ||
cd hwloc | ||
|
||
example dev/dev-build-1 "spack dev-build hwloc@master" | ||
|
||
example dev/info "spack info hwloc" | ||
|
||
echo y | example dev/dev-build-2 "spack uninstall hwloc" | ||
fake_example dev/dev-build-2 "spack dev-build --until configure --drop-in bash hwloc@master" "spack dev-build --until configure hwloc@master" | ||
|
||
export EDITOR="bash -c exit 0" | ||
fake_example dev/edit-1 '$EDITOR hwloc/base64.c' "/bin/true" | ||
sed -i~ s'|\("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\);|\1|' hwloc/base64.c | head -n 70 | ||
|
||
fake_example dev/hand-build-1 "make" "spack build-env hwloc@master -- make" | ||
|
||
fake_example dev/hand-build-2 '$EDITOR hwloc/base64.c' "/bin/true" | ||
sed -i~ s'|\("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\)|\1;|' hwloc/base64.c | head -n 70 | ||
fake_example dev/hand-build-2 "make" "spack build-env hwloc@master -- make" |
Oops, something went wrong.