Browse Source

Merge pull request #2323 from caskroom/fix-travis

copy travis scripts from main repo
master
Josh Hagins 9 years ago
committed by GitHub
parent
commit
ebb517235a
  1. 7
      ci/travis/before_install.sh
  2. 4
      ci/travis/before_script.sh
  3. 10
      ci/travis/helpers.sh
  4. 4
      ci/travis/install.sh
  5. 4
      ci/travis/script.sh

7
ci/travis/before_install.sh

@ -8,10 +8,11 @@
# shellcheck disable=SC1090
. "${TRAVIS_BUILD_DIR}/ci/travis/helpers.sh"
enter_build_step
header 'Running before_install.sh...'
# https://github.com/rvm/rvm/pull/3627
run rvm get head
# unset rvm hook functions
run unset -f cd gem
@ -63,5 +64,3 @@ run mkdir -p "${CASK_TAP_DIR}"
run rsync -az --delete "${TRAVIS_BUILD_DIR}/" "${CASK_TAP_DIR}/"
run export TRAVIS_BUILD_DIR="${CASK_TAP_DIR}"
run cd "${CASK_TAP_DIR}" || exit 1
exit_build_step

4
ci/travis/before_script.sh

@ -8,8 +8,6 @@
# shellcheck disable=SC1090
. "${TRAVIS_BUILD_DIR}/ci/travis/helpers.sh"
enter_build_step
header 'Running before_script.sh...'
run which bundle
@ -17,5 +15,3 @@ run bundle --version
run which rake
run rake --version
exit_build_step

10
ci/travis/helpers.sh

@ -32,16 +32,6 @@ header () {
echo
}
# disallow unbound variables during build step
enter_build_step () {
set -o nounset
}
# allow unbound variables so Travis doesn't get mad at us
exit_build_step () {
set +o nounset
}
modified_cask_files () {
if [[ -z "${MODIFIED_CASK_FILES+defined}" ]]; then
MODIFIED_CASK_FILES="$(git diff --name-only --diff-filter=AM "${TRAVIS_COMMIT_RANGE}" -- Casks/*.rb)"

4
ci/travis/install.sh

@ -8,8 +8,6 @@
# shellcheck disable=SC1090
. "${TRAVIS_BUILD_DIR}/ci/travis/helpers.sh"
enter_build_step
header 'Running install.sh...'
# install bundler and project dependencies in $GEM_HOME
@ -17,5 +15,3 @@ run gem install --no-ri --no-rdoc bundler
run which bundle
run bundle --version
run bundle install --path="${GEM_HOME%/*/*}"
exit_build_step

4
ci/travis/script.sh

@ -8,8 +8,6 @@
# shellcheck disable=SC1090
. "${TRAVIS_BUILD_DIR}/ci/travis/helpers.sh"
enter_build_step
header 'Running script.sh...'
if any_casks_modified; then
@ -18,5 +16,3 @@ if any_casks_modified; then
fi
run bundle exec rake test
exit_build_step

Loading…
Cancel
Save