Add ci scripts to the project
authorNikos Skalkotos <skalkoto@grnet.gr>
Fri, 26 Jul 2013 11:22:55 +0000 (14:22 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Fri, 26 Jul 2013 11:22:55 +0000 (14:22 +0300)
ci/autopkg_debian.sh [new file with mode: 0755]
ci/make_docs.sh [new file with mode: 0755]
ci/pep8.sh [new file with mode: 0755]
ci/pylint.sh [new file with mode: 0755]

diff --git a/ci/autopkg_debian.sh b/ci/autopkg_debian.sh
new file mode 100755 (executable)
index 0000000..8a46c14
--- /dev/null
@@ -0,0 +1,18 @@
+#!/usr/bin/env sh
+set -e
+
+PACKAGES_DIR=$1
+
+shift
+
+TEMP_DIR=$(mktemp -d /tmp/devflow_autopkg_XXXXXXX)
+
+# Create the packages
+devflow-autopkg snapshot -b $TEMP_DIR $@
+
+# MOVE the packages
+mkdir -p $PACKAGES_DIR
+mv -n $TEMP_DIR/* $PACKAGES_DIR
+
+echo "Moved packages to: $(pwd)/$PACKAGES_DIR"
+
diff --git a/ci/make_docs.sh b/ci/make_docs.sh
new file mode 100755 (executable)
index 0000000..61a53d9
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+DOCS_DIR=$1
+
+cd docs
+make html
+cd -
+
+mkdir -p $DOCS_DIR
+mv -n docs/_build/html/* $DOCS_DIR
+
+echo "Moved docs to to: $(pwd)/$DOCS_DIR"
diff --git a/ci/pep8.sh b/ci/pep8.sh
new file mode 100755 (executable)
index 0000000..e9786a7
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+pep8 image_creator
+
diff --git a/ci/pylint.sh b/ci/pylint.sh
new file mode 100755 (executable)
index 0000000..a200be1
--- /dev/null
@@ -0,0 +1,3 @@
+!/bin/sh
+
+pylint image_creator