2015-09-17 07:38:52 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# script/cibuild: Setup environment for CI to run tests. This is primarily
|
|
|
|
# designed to run on the continuous integration server.
|
|
|
|
|
2015-09-20 04:33:24 +00:00
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
2016-01-02 22:23:12 +00:00
|
|
|
if [ "$TRAVIS_PYTHON_VERSION" = "3.5" ]; then
|
|
|
|
echo "Verifying requirements_all.txt..."
|
2016-01-29 17:35:42 +00:00
|
|
|
python3 setup.py -q develop
|
2016-01-02 22:23:12 +00:00
|
|
|
tput setaf 1
|
|
|
|
script/gen_requirements_all.py validate
|
|
|
|
VERIFY_REQUIREMENTS_STATUS=$?
|
|
|
|
tput sgr0
|
|
|
|
else
|
|
|
|
VERIFY_REQUIREMENTS_STATUS=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$VERIFY_REQUIREMENTS_STATUS" != "0" ]; then
|
|
|
|
exit $VERIFY_REQUIREMENTS_STATUS
|
|
|
|
fi
|
|
|
|
|
|
|
|
script/bootstrap_server > /dev/null
|
|
|
|
DEP_INSTALL_STATUS=$?
|
|
|
|
|
|
|
|
if [ "$DEP_INSTALL_STATUS" != "0" ]; then
|
|
|
|
exit $DEP_INSTALL_STATUS
|
|
|
|
fi
|
|
|
|
|
2015-12-28 02:04:38 +00:00
|
|
|
if [ "$TRAVIS_PYTHON_VERSION" != "3.5" ]; then
|
2015-12-18 08:09:33 +00:00
|
|
|
NO_LINT=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
export NO_LINT
|
|
|
|
|
2015-09-17 07:35:26 +00:00
|
|
|
script/test coverage
|
2015-09-19 19:29:23 +00:00
|
|
|
|
|
|
|
STATUS=$?
|
|
|
|
|
2015-09-17 07:35:26 +00:00
|
|
|
coveralls
|
2015-09-19 19:29:23 +00:00
|
|
|
|
|
|
|
exit $STATUS
|