How to export log files from Travis CI to GitHUB?

I use Travis CI.org (Public repo) to complete my builds and the log prints to the main page of Travis (log file). I want to extract the log file / send the log file to the Git HUB or any other open source external tool to access it.

Could you tell us how to do this?

+4
source share
1 answer

We can deploy assembly artifacts to S3: paste the code below into the .travis.yml file if you use github and S3.

after_failure:

addons:
  artifacts:
    paths:
       - $(git ls-files -o | tr "\n" ":")

deploy:

- provider: s3
- access_key_id: $ARTIFACTS_KEY
- secret_access_key: $ARTIFACTS_SECRET
- bucket: $ARTIFACTS_BUCKET
- skip_cleanup: true
- acl: public_read

, , chunk.io. script after_failure .travis.yml:

cd path/to/directory/where/untracked files store/

count=$(git ls-files -o | wc -l)

git ls-files -o

echo ">>>>>>>>> CONTAINERS LOG FILES <<<<<<<<<<<<"

for (( i=1; i<"$count";i++ ))

do

file=$(echo $(git ls-files -o | sed "${i}q;d"))

echo "$file"

cat $file | curl -sT - chunk.io

done

echo " >>>>> testsummary log file <<<< "

cat testsummary.log | curl -sT - chunk.io
+2

All Articles