Skip to content

Instantly share code, notes, and snippets.

@syhe
Last active April 26, 2017 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save syhe/d405c5eab96a63f9b6c658936a342c78 to your computer and use it in GitHub Desktop.
Save syhe/d405c5eab96a63f9b6c658936a342c78 to your computer and use it in GitHub Desktop.
Simple modman test
#!/usr/bin/env bash
set -e
MODMAN="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/modman"
TMPDIR=$(mktemp -d)
function cleanup () {
rm -rfv "$TMPDIR"
}
trap cleanup EXIT
modmandir=".modman"
cd "$TMPDIR"
mkdir basedir
$MODMAN init "$PWD/basedir"
mkdir $modmandir/Test_Module
touch $modmandir/Test_Module/modman
echo "src/testfile testlink" > $modmandir/Test_Module/modman
mkdir $modmandir/Test_Module/src
touch $modmandir/Test_Module/src/testfile
$MODMAN deploy Test_Module --basedir "basedir"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment