mirror of
https://github.com/humhub/humhub.git
synced 2025-02-22 02:09:21 +01:00
19 lines
507 B
Bash
19 lines
507 B
Bash
|
#!/usr/bin/env sh
|
||
|
|
||
|
# -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
|
||
|
|
||
|
# find _output folder and add to zip
|
||
|
find humhub/ -type d -name "_output" -exec zip -r --exclude="*.gitignore" failure.zip {} +
|
||
|
|
||
|
# add logs to failure.zip
|
||
|
zip -ur failure.zip runtime/logs
|
||
|
|
||
|
# upload file
|
||
|
curl --upload-file ./failure.zip https://transfer.sh/humhub-travis-${TRAVIS_JOB_NUMBER}.zip
|
||
|
|
||
|
# delete zip
|
||
|
rm failure.zip
|