2015-12-31 12:01:31 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# script.sh
|
|
|
|
#
|
|
|
|
# This file is meant to be sourced during the `script` phase of the Travis
|
|
|
|
# build. Do not attempt to source or run it locally.
|
|
|
|
#
|
|
|
|
# shellcheck disable=SC1090
|
|
|
|
. "${TRAVIS_BUILD_DIR}/ci/travis/helpers.sh"
|
|
|
|
|
|
|
|
enter_build_step
|
|
|
|
|
|
|
|
header 'Running script.sh...'
|
|
|
|
|
2016-01-08 22:05:31 +08:00
|
|
|
if any_casks_modified; then
|
|
|
|
modified_casks=($(modified_cask_files))
|
|
|
|
run developer/bin/audit_modified_casks "${TRAVIS_COMMIT_RANGE}"
|
2016-01-07 14:27:20 +08:00
|
|
|
run brew cask style "${modified_casks[@]}"
|
2016-01-08 22:05:31 +08:00
|
|
|
fi
|
2016-01-08 18:25:23 +08:00
|
|
|
|
|
|
|
if must_run_tests; then
|
|
|
|
run bundle exec rake test:coverage
|
|
|
|
run bundle exec rake coveralls:push || true # in case of networking errors
|
|
|
|
fi
|
2016-01-07 02:28:32 +08:00
|
|
|
|
2015-12-31 12:01:31 +08:00
|
|
|
exit_build_step
|