-
-
Notifications
You must be signed in to change notification settings - Fork 227
/
after_success.sh
25 lines (20 loc) · 903 Bytes
/
after_success.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# This script is meant to be called by the "after_success" step defined in
# .travis.yml. See http://docs.travis-ci.com/ for more details.
# License: 3-clause BSD
set -e
# after the success of the build, build the ext again to ensure the .so
# files are present in case we are deploying. Otherwise the .whl files will
# be built without the compiled .so Cython files
# python setup.py build_ext
if [[ "$COVERAGE" == "true" ]]; then
# Need to run coveralls from a git checkout, so we copy .coverage
# from TEST_DIR where nosetests has been run
cp $TEST_DIR/.coverage $TRAVIS_BUILD_DIR
cd $TRAVIS_BUILD_DIR
# Ignore coveralls failures as the coveralls server is not
# very reliable but we don't want travis to report a failure
# in the github UI just because the coverage report failed to
# be published.
coveralls || echo "Coveralls upload failed"
fi