What is the current workflow to debug Travis builds locally?

前端 未结 3 391
野趣味
野趣味 2021-01-30 17:14

One used to be able to download Vagrant boxes to debug Travis builds (for GitHub projects for instance). Apparently, this is no longer possible, so how do people currently debug

3条回答
  •  佛祖请我去吃肉
    2021-01-30 17:23

    One way to inspect the build (not to debug, sorry) is to send the build logs to another server on failure.

    Here is an example:

    after_failure
      - sudo tar -czf /tmp/build-${TRAVIS_BUILD_NUMBER}-logs.tgz your-application-logs/
      - scp /tmp/build-${TRAVIS_BUILD_NUMBER}-logs.tgz travis@your-server.com:~/logs
    

    You could send them via email, store them on a storage server or whatever.

    These logs would be useful to you if you run your tests in a debug mode and include our own logs as well in the tarball.

提交回复
热议问题