瀏覽代碼

Automatically check and upload on Travis CI cron job

Jasper van Merle 6 年之前
父節點
當前提交
b8a7965bfe
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      .travis.yml

+ 4 - 0
.travis.yml

@@ -5,3 +5,7 @@ cache: bundler
 before_script:
   - gem update --system
   - gem install bundler
+
+script:
+  - if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then bundle exec rake; fi
+  - if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then bundle exec thor updates:check --github-token $GH_TOKEN --upload; fi