Merge pull request #3267 from danielkesselberg/master

Fix: Cannot find .travis-scripts because wrong working directory
This commit is contained in:
Daniel Kesselberg 2018-08-24 17:58:10 +02:00 committed by GitHub
commit fc35a3dae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View File

@ -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:

View File

@ -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

View File

@ -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 {} +