【问题标题】:How to make Travis yml wait longer如何让 Travis yml 等待更长时间
【发布时间】:2019-05-21 21:43:04
【问题描述】:

我是 travis 的新手,在我的项目中使用它。一般来说,我运行的测试总共需要超过 50 分钟,我需要 travis 做的就是不时检查一下结果是否出现。我无法在 travis 上进行测试,因为它在不同的机器上运行。

我注意到 Travis 的限制是每个作业的 50 min,但整个构建没有任何限制。我有一个 python 脚本偶尔检查结果,我怎样才能运行它总共 2 小时?顺便说一句,我可以在构建中运行它 6 次

谢谢

【问题讨论】:

    标签: python timeout travis-ci


    【解决方案1】:

    已解决 我刚刚做了 5 个作业,每个作业都运行了 45 分钟,yml 看起来类似于:

    jobs:
      include:
        - stage: first
          language: python
          python: "3.6"
          script: python3 -u script.py
        - stage: second
          language: python
          python: "3.6"
          script: python3 -u bad_script.py
        - stage: third
          language: python
          python: "3.6"
          script: python3 -u script.py
        - stage: fourth
          language: python
          python: "3.6"
          script: python3 -u bad_script.py
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-06
      • 2022-11-03
      • 2021-09-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-23
      • 2010-12-02
      相关资源
      最近更新 更多