From e49696ac70b9acacccc2d6df7fee981735251df6 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Fri, 24 Aug 2018 17:56:15 +0200 Subject: [PATCH] Fix: Cannot find .travis-scripts because wrong working directory --- .travis.yml | 1 + .travis/trigger-modules.sh | 3 --- .travis/upload-failure.sh | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index d19286795e..fe6275d32a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,7 @@ script: - 'cd protected/humhub/tests' - 'php ../../vendor/bin/codecept build' - 'php ../../vendor/bin/codecept run --env travis' +- cd ../../../ after_failure: - .travis/upload-failure.sh after_success: diff --git a/.travis/trigger-modules.sh b/.travis/trigger-modules.sh index e775893d54..1095e60553 100755 --- a/.travis/trigger-modules.sh +++ b/.travis/trigger-modules.sh @@ -3,9 +3,6 @@ # -e = exit when one command returns != 0, -v print each command before executing set -ev -# change to build directory -cd ${TRAVIS_BUILD_DIR} - # build only when branch master and no pull request if [ ${TRAVIS_BRANCH} = "master" ] && [ ${TRAVIS_PULL_REQUEST} = "false" ]; then diff --git a/.travis/upload-failure.sh b/.travis/upload-failure.sh index 24710cdca7..c83d30335c 100755 --- a/.travis/upload-failure.sh +++ b/.travis/upload-failure.sh @@ -3,8 +3,8 @@ # -e = exit when one command returns != 0, -v print each command before executing set -ev -# change to build directory / protected -cd ${TRAVIS_BUILD_DIR}/protected +# change to protected directory +cd protected # find _output folder and add to zip find humhub/ -type d -name "_output" -exec zip -r --exclude="*.gitignore" failure.zip {} +