test_lms.sh 672 Bytes
Newer Older
1 2
#! /bin/bash

3 4 5
set -e
set -x

6 7 8 9 10 11 12 13
# 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}

14 15 16
pip install -q -r pre-requirements.txt
yes w | pip install -q -r requirements.txt
[ ! -d askbot ] || pip install -q -r askbot/askbot_requirements.txt
17 18 19 20 21 22

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
23
rake phantomjs_jasmine_lms || true
24
rake coverage:xml coverage:html
25 26 27

[ $TESTS_FAILED == '0' ]
rake autodeploy_properties