From 62c08981d76fa1e9d12407beb0202bdf054e7c7a Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 21 Jun 2021 12:41:20 +0300 Subject: scripts: laminar: Add sh scripts for CI --- scripts/laminar/gn3-lint.sh | 15 +++++++++++++++ scripts/laminar/gn3-mypy.sh | 15 +++++++++++++++ scripts/laminar/gn3-unittest.sh | 15 +++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 scripts/laminar/gn3-lint.sh create mode 100644 scripts/laminar/gn3-mypy.sh create mode 100644 scripts/laminar/gn3-unittest.sh (limited to 'scripts') diff --git a/scripts/laminar/gn3-lint.sh b/scripts/laminar/gn3-lint.sh new file mode 100644 index 0000000..b6f0c89 --- /dev/null +++ b/scripts/laminar/gn3-lint.sh @@ -0,0 +1,15 @@ +#!/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.sh b/scripts/laminar/gn3-mypy.sh new file mode 100644 index 0000000..a2a9782 --- /dev/null +++ b/scripts/laminar/gn3-mypy.sh @@ -0,0 +1,15 @@ +#!/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.sh b/scripts/laminar/gn3-unittest.sh new file mode 100644 index 0000000..41dafe5 --- /dev/null +++ b/scripts/laminar/gn3-unittest.sh @@ -0,0 +1,15 @@ +#!/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