From 2c3e163cc69fd391ecda4e3b7a27078626a3f1b4 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 21 Jan 2022 07:23:24 +0300 Subject: Rename job scripts to fit laminar's paradigm --- scripts/laminar/gn3-lint.run | 16 ++++++++++++++++ scripts/laminar/gn3-lint.sh | 15 --------------- scripts/laminar/gn3-mypy.run | 15 +++++++++++++++ scripts/laminar/gn3-mypy.sh | 15 --------------- scripts/laminar/gn3-unittest.run | 15 +++++++++++++++ scripts/laminar/gn3-unittest.sh | 15 --------------- 6 files changed, 46 insertions(+), 45 deletions(-) create mode 100755 scripts/laminar/gn3-lint.run delete mode 100644 scripts/laminar/gn3-lint.sh create mode 100755 scripts/laminar/gn3-mypy.run delete mode 100644 scripts/laminar/gn3-mypy.sh create mode 100755 scripts/laminar/gn3-unittest.run delete mode 100644 scripts/laminar/gn3-unittest.sh (limited to 'scripts/laminar') diff --git a/scripts/laminar/gn3-lint.run b/scripts/laminar/gn3-lint.run new file mode 100755 index 0000000..2456740 --- /dev/null +++ b/scripts/laminar/gn3-lint.run @@ -0,0 +1,16 @@ +#!/bin/sh + +set -ex # Abort on first error + +CUR_DIR=$PWD +GN3_CI_DIR=$HOME/CI/genenetwork3/ + +cd $GN3_CI_DIR +git pull + +# Run Pylint +env GUIX_PACKAGE_PATH="$HOME/guix-bioinformatics:$HOME/guix-past/modules" \ + guix environment --load=guix.scm -- pylint sheepdog/worker.py gn3/ tests + +echo Done Running Pylint! +cd $CUR_DIR diff --git a/scripts/laminar/gn3-lint.sh b/scripts/laminar/gn3-lint.sh deleted file mode 100644 index b6f0c89..0000000 --- a/scripts/laminar/gn3-lint.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -set -e # Abort on first error -CUR_DIR=$PWD -GN3_CI_DIR=$HOME/CI/genenetwork3/ - -cd $GN3_CI_DIR -git pull - -# Run Pylint -env GUIX_PACKAGE_PATH="$HOME/guix-bioinformatics:$HOME/guix-past/modules" \ - guix environment --load=guix.scm -- pylint sheepdog/worker.py gn3/ tests - -echo Done Running Pylint! -cd $CUR_DIR diff --git a/scripts/laminar/gn3-mypy.run b/scripts/laminar/gn3-mypy.run new file mode 100755 index 0000000..43f48e8 --- /dev/null +++ b/scripts/laminar/gn3-mypy.run @@ -0,0 +1,15 @@ +#!/bin/sh + +set -ex # Abort on first error +CUR_DIR=$PWD +GN3_CI_DIR=$HOME/CI/genenetwork3/ + +cd $GN3_CI_DIR +git pull + +# Run Pylint +env GUIX_PACKAGE_PATH="$HOME/guix-bioinformatics:$HOME/guix-past/modules" \ + guix environment --load=guix.scm -- mypy . + +echo Done Running MyPy! +cd $CUR_DIR diff --git a/scripts/laminar/gn3-mypy.sh b/scripts/laminar/gn3-mypy.sh deleted file mode 100644 index a2a9782..0000000 --- a/scripts/laminar/gn3-mypy.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -set -e # Abort on first error -CUR_DIR=$PWD -GN3_CI_DIR=$HOME/CI/genenetwork3/ - -cd $GN3_CI_DIR -git pull - -# Run Pylint -env GUIX_PACKAGE_PATH="$HOME/guix-bioinformatics:$HOME/guix-past/modules" \ - guix environment --load=guix.scm -- mypy . - -echo Done Running MyPy! -cd $CUR_DIR diff --git a/scripts/laminar/gn3-unittest.run b/scripts/laminar/gn3-unittest.run new file mode 100755 index 0000000..e6a65e5 --- /dev/null +++ b/scripts/laminar/gn3-unittest.run @@ -0,0 +1,15 @@ +#!/bin/sh + +set -ex # Abort on first error +CUR_DIR=$PWD +GN3_CI_DIR=$HOME/CI/genenetwork3/ + +cd $GN3_CI_DIR +git pull + +# Run Pylint +env GUIX_PACKAGE_PATH="$HOME/guix-bioinformatics:$HOME/guix-past/modules" \ + guix environment --load=guix.scm -- python -m unittest discover + +echo Done Running Unittests! +cd $CUR_DIR diff --git a/scripts/laminar/gn3-unittest.sh b/scripts/laminar/gn3-unittest.sh deleted file mode 100644 index 41dafe5..0000000 --- a/scripts/laminar/gn3-unittest.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -set -e # Abort on first error -CUR_DIR=$PWD -GN3_CI_DIR=$HOME/CI/genenetwork3/ - -cd $GN3_CI_DIR -git pull - -# Run Pylint -env GUIX_PACKAGE_PATH="$HOME/guix-bioinformatics:$HOME/guix-past/modules" \ - guix environment --load=guix.scm -- python -m unittest discover - -echo Done Running Unittests! -cd $CUR_DIR -- cgit v1.2.3