From 97d863ff7ce616ce9f595ba08a6460e0d08d2d3d Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Fri, 26 Jul 2013 14:22:55 +0300 Subject: [PATCH] Add ci scripts to the project --- ci/autopkg_debian.sh | 18 ++++++++++++++++++ ci/make_docs.sh | 13 +++++++++++++ ci/pep8.sh | 4 ++++ ci/pylint.sh | 3 +++ 4 files changed, 38 insertions(+) create mode 100755 ci/autopkg_debian.sh create mode 100755 ci/make_docs.sh create mode 100755 ci/pep8.sh create mode 100755 ci/pylint.sh diff --git a/ci/autopkg_debian.sh b/ci/autopkg_debian.sh new file mode 100755 index 0000000..8a46c14 --- /dev/null +++ b/ci/autopkg_debian.sh @@ -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 index 0000000..61a53d9 --- /dev/null +++ b/ci/make_docs.sh @@ -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 index 0000000..e9786a7 --- /dev/null +++ b/ci/pep8.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +pep8 image_creator + diff --git a/ci/pylint.sh b/ci/pylint.sh new file mode 100755 index 0000000..a200be1 --- /dev/null +++ b/ci/pylint.sh @@ -0,0 +1,3 @@ +!/bin/sh + +pylint image_creator -- 1.7.10.4