Files
core/script/cibuild
T

43 lines
801 B
Bash
Raw Normal View History

2015-09-17 00:38:52 -07: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-19 21:33:24 -07:00
cd "$(dirname "$0")/.."
2016-01-02 14:23:12 -08: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 14:23:12 -08: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
if [ "$TRAVIS_PYTHON_VERSION" != "3.5" ]; then
2015-12-18 00:09:33 -08:00
NO_LINT=1
fi
export NO_LINT
2015-09-17 00:35:26 -07:00
script/test coverage
2015-09-19 12:29:23 -07:00
STATUS=$?
2015-09-17 00:35:26 -07:00
coveralls
2015-09-19 12:29:23 -07:00
exit $STATUS