From 6b28b70e51293637c006f8bd5dddeda5b57db621 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 6 Nov 2012 16:12:19 -0500 Subject: [PATCH] Add jenkins files for builds --- jenkins/quality.sh | 11 +++++++++++ jenkins/test_edge.sh | 28 ++++++++++++++++++++++++++++ jenkins/test_lms.sh | 26 ++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100755 jenkins/quality.sh create mode 100755 jenkins/test_edge.sh create mode 100755 jenkins/test_lms.sh diff --git a/jenkins/quality.sh b/jenkins/quality.sh new file mode 100755 index 0000000000..2cfea7a760 --- /dev/null +++ b/jenkins/quality.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +# Reset the submodule, in case it changed +git submodule foreach 'git reset --hard HEAD' + +# Set the IO encoding to UTF-8 so that askbot will start +export PYTHONIOENCODING=UTF-8 + +rake clobber +rake pep8 || echo "pep8 failed, continuing" +rake pylint || echo "pylint failed, continuing" \ No newline at end of file diff --git a/jenkins/test_edge.sh b/jenkins/test_edge.sh new file mode 100755 index 0000000000..1896e58c55 --- /dev/null +++ b/jenkins/test_edge.sh @@ -0,0 +1,28 @@ +#! /bin/bash + +# Reset the submodule, in case it changed +git submodule foreach 'git reset --hard HEAD' + +# Set the IO encoding to UTF-8 so that askbot will start +export PYTHONIOENCODING=UTF-8 + +GIT_BRANCH=${GIT_BRANCH/HEAD/master} + +pip install -r pre-requirements.txt +yes w | pip install -r requirements.txt +[ ! -d askbot ] || pip install -r askbot/askbot_requirements.txt + +# Install the latest entry points from xmodule +pip install --upgrade -e common/lib/xmodule + +rake clobber +TESTS_FAILED=0 +rake test_cms[false] || TESTS_FAILED=1 +rake test_lms[false] || TESTS_FAILED=1 +rake test_common/lib/capa || TESTS_FAILED=1 +rake test_common/lib/xmodule || TESTS_FAILED=1 +rake phantomjs_jasmine_lms || true +rake phantomjs_jasmine_cms || true + +[ $TESTS_FAILED == '0' ] +rake autodeploy_properties \ No newline at end of file diff --git a/jenkins/test_lms.sh b/jenkins/test_lms.sh new file mode 100755 index 0000000000..59a141831d --- /dev/null +++ b/jenkins/test_lms.sh @@ -0,0 +1,26 @@ +#! /bin/bash + +# Reset the submodule, in case it changed +git submodule foreach 'git reset --hard HEAD' + +# Set the IO encoding to UTF-8 so that askbot will start +export PYTHONIOENCODING=UTF-8 + +GIT_BRANCH=${GIT_BRANCH/HEAD/master} + +pip install -r pre-requirements.txt +yes w | pip install -r requirements.txt +[ ! -d askbot ] || pip install -r askbot/askbot_requirements.txt + +# Install the latest entry points from xmodule +pip install --upgrade -e common/lib/xmodule + +rake clobber +TESTS_FAILED=0 +rake test_lms[false] || TESTS_FAILED=1 +rake test_common/lib/capa || TESTS_FAILED=1 +rake test_common/lib/xmodule || TESTS_FAILED=1 +rake phantomjs_jasmine_cms || true + +[ $TESTS_FAILED == '0' ] +rake autodeploy_properties \ No newline at end of file