aboutsummaryrefslogtreecommitdiff
path: root/scripts/laminar/gn3-mypy.run
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-01-21 10:31:13 +0300
committerFrederick Muriuki Muriithi2022-01-24 10:25:27 +0300
commit78d0d84fd7300e934ca76fa6faa38536b8028125 (patch)
tree77ae7f2d75869df7899b5dc5c9aa2af27ef2b7ce /scripts/laminar/gn3-mypy.run
parent4c909d6748ef1f0e7348f7aec42a903f83c6f564 (diff)
downloadgenenetwork3-78d0d84fd7300e934ca76fa6faa38536b8028125.tar.gz
Use guix shell. Remove git commandsci-cd-scripts
* Use guix shell rather than guix environment * Use `GN_CI_DIR` set up at invocation * Remove git commands * Use `~/.config/guix/current/bin/guix` to take advantage of declared channels
Diffstat (limited to 'scripts/laminar/gn3-mypy.run')
-rwxr-xr-xscripts/laminar/gn3-mypy.run11
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/laminar/gn3-mypy.run b/scripts/laminar/gn3-mypy.run
index 43f48e8..f92981b 100755
--- a/scripts/laminar/gn3-mypy.run
+++ b/scripts/laminar/gn3-mypy.run
@@ -1,15 +1,12 @@
#!/bin/sh
set -ex # Abort on first error
-CUR_DIR=$PWD
-GN3_CI_DIR=$HOME/CI/genenetwork3/
-cd $GN3_CI_DIR
-git pull
+CUR_DIR=$PWD
+cd "$GN3_CI_DIR"
# Run Pylint
-env GUIX_PACKAGE_PATH="$HOME/guix-bioinformatics:$HOME/guix-past/modules" \
- guix environment --load=guix.scm -- mypy .
+"${HOME}/.config/guix/current/bin/guix" shell --file=guix.scm -- mypy .
echo Done Running MyPy!
-cd $CUR_DIR
+cd "$CUR_DIR"