
{"id":499,"date":"2019-09-18T15:58:12","date_gmt":"2019-09-18T07:58:12","guid":{"rendered":"http:\/\/www.changxuan.top\/?p=499"},"modified":"2022-03-06T20:54:30","modified_gmt":"2022-03-06T12:54:30","slug":"travis-ci%e4%b8%ad%e6%96%87%e6%96%87%e6%a1%a3","status":"publish","type":"post","link":"https:\/\/www.changxuan.top\/?p=499","title":{"rendered":"Travis CI\u4e2d\u6587\u6587\u6863"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u5feb\u901f\u5f00\u59cb<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u521d\u5b66\u8005\u5e94\u8be5\u4e86\u89e3\u7684\u4e00\u4e9b\u6838\u5fc3\u6982\u5ff5<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u6b22\u8fce\u6765\u5230 Travis CI\uff01\u6b64\u9875\u9762\u63d0\u4f9b\u4e86\u6574\u4e2a\u5e73\u53f0\u548c\u6587\u6863\u4e2d\u4f7f\u7528\u7684\u4e00\u4e9b\u4e0a\u4e0b\u6587\u548c\u672f\u8bed\uff0c\u5982\u679c\u60a8\u662f\u7b2c\u4e00\u6b21\u8bbf\u95ee\u6b64\u9875\u9762\u6216\u662f\u6301\u7eed\u96c6\u6210\uff08CI\uff09\u7684\u65b0\u7528\u6237\uff0c\u8fd9\u53ef\u80fd\u4f1a\u6709\u6240\u5e2e\u52a9\u3002<\/p><\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ec0\u4e48\u662f\u6301\u7eed\u96c6\u6210\uff08CI\uff09\uff1f<\/h4>\n\n\n\n<p>\u6301\u7eed\u96c6\u6210\u662f\u9891\u7e41\u7684\u5408\u5e76\u66f4\u6539\u7684\u5c11\u91cf\u4ee3\u7801\u7684\u5b9e\u8df5 &#8211; \u800c\u4e0d\u662f\u5728\u5f00\u53d1\u5468\u671f\u7ed3\u675f\u65f6\u5408\u5e76\u5927\u91cf\u66f4\u6539\u3002\u76ee\u6807\u662f\u901a\u8fc7\u4ee5\u8f83\u5c0f\u7684\u589e\u91cf\u5f00\u53d1\u548c\u6d4b\u8bd5\u6765\u6784\u5efa\u66f4\u5065\u5eb7\u7684\u8f6f\u4ef6\u3002\u8fd9\u5c31\u662fTravis CI\u7684\u7528\u6b66\u4e4b\u5730\u3002<\/p>\n\n\n\n<p>\u4f5c\u4e3a\u4e00\u4e2a\u6301\u7eed\u96c6\u6210\u5e73\u53f0\uff0cTravis CI\u901a\u8fc7\u81ea\u52a8\u6784\u5efa\u548c\u6d4b\u8bd5\u4ee3\u7801\u66f4\u6539\u6765\u652f\u6301\u60a8\u7684\u5f00\u53d1\u8fc7\u7a0b\uff0c\u5e76\u63d0\u4f9b\u6709\u5173\u53d8\u66f4\u6210\u529f\u7684\u5373\u65f6\u53cd\u9988\u3002Travis CI\u8fd8\u53ef\u4ee5\u901a\u8fc7\u7ba1\u7406\u90e8\u7f72\u548c\u901a\u77e5\u6765\u81ea\u52a8\u5316\u5f00\u53d1\u8fc7\u7a0b\u7684\u5176\u4ed6\u90e8\u5206\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">CI\u6784\u5efa\u548c\u81ea\u52a8\u5316\uff1a\u6784\u5efa\u3001\u6d4b\u8bd5\u3001\u90e8\u7f72<\/h4>\n\n\n\n<p>\u5f53\u4f60\u5f00\u59cb\u4e00\u6b21\u6784\u5efa\u65f6\uff0cTravis CI\u4f1a\u5c06\u60a8\u7684GitHub\u5b58\u50a8\u5e93\u514b\u9686\u5230\u5168\u65b0\u7684\u865a\u62df\u73af\u5883\u4e2d\uff0c\u5e76\u6267\u884c\u4e00\u7cfb\u5217\u4efb\u52a1\u6765\u6784\u5efa\u548c\u6d4b\u8bd5\u60a8\u7684\u4ee3\u7801\u3002\u5982\u679c\u5176\u4e2d\u4e00\u4e2a\u6216\u591a\u4e2a\u4efb\u52a1\u5931\u8d25\uff0c\u5219\u6784\u5efa\u88ab\u89c6\u4e3a\u5df2 <a href=\"https:\/\/docs.travis-ci.com\/user\/for-beginners\/#breaking-the-build\"><em>\u635f\u574f<\/em><\/a>\u3002\u5982\u679c\u6ca1\u6709\u4efb\u4f55\u4efb\u52a1\u5931\u8d25\uff0c\u5219\u8ba4\u4e3a\u6784\u5efa\u5df2<a href=\"https:\/\/docs.travis-ci.com\/user\/for-beginners\/#breaking-the-build\"><em>\u901a\u8fc7<\/em><\/a>\uff0cTravis CI\u53ef\u5c06\u60a8\u7684\u4ee3\u7801\u90e8\u7f72\u5230Web\u670d\u52a1\u5668\u6216\u5e94\u7528\u7a0b\u5e8f\u4e3b\u673a\u3002<\/p>\n\n\n\n<p>CI\u6784\u5efa\u8fd8\u53ef\u4ee5\u81ea\u52a8\u5316\u4ea4\u4ed8\u5de5\u4f5c\u6d41\u7a0b\u7684\u5176\u4ed6\u90e8\u5206\u3002\u8fd9\u610f\u5473\u7740\u60a8\u53ef\u4ee5\u901a\u8fc7<a href=\"https:\/\/docs.travis-ci.com\/user\/build-stages\/\">\u6784\u5efa\u9636\u6bb5<\/a>\uff0c\u8bbe\u7f6e<a href=\"https:\/\/docs.travis-ci.com\/user\/notifications\/\">\u901a\u77e5<\/a>\uff0c\u5728\u6784\u5efa\u4e4b\u540e\u51c6\u5907 <a href=\"https:\/\/docs.travis-ci.com\/user\/deployment\/\">\u90e8\u7f72<\/a>\u4ee5\u53ca\u8bb8\u591a\u5176\u4ed6\u4efb\u52a1\u6765\u4f7f\u4f5c\u4e1a\u5f7c\u6b64\u4f9d\u8d56\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6784\u5efa\u3001\u5de5\u4f5c\u3001\u9636\u6bb5\u548c\u9636\u6bb5<\/h4>\n\n\n\n<p>\u5728Travis CI\u6587\u6863\u4e2d\uff0c\u4e00\u4e9b\u5e38\u7528\u8bcd\u5177\u6709\u7279\u5b9a\u542b\u4e49\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><em>phase\uff08\u9636\u6bb5\uff09<\/em>  &#8211; \u5de5\u4f5c\u7684 <a href=\"https:\/\/docs.travis-ci.com\/user\/job-lifecycle\/\">sequential steps<\/a> \uff08\u8fde\u7eed\u6b65\u9aa4\uff09\u3002\u4f8b\u5982\uff0c<code>install<\/code>\u9636\u6bb5\u5728<code>script<\/code>\u9636\u6bb5\u4e4b\u524d\uff0cscript \u9636\u6bb5\u5728\u53ef\u9009 deploy \u9636\u6bb5\u4e4b\u524d\u3002<\/li><li><em>job\uff08\u5de5\u4f5c\uff09<\/em> &#8211; \u4e00\u4e2a\u81ea\u52a8\u5316\u8fc7\u7a0b\uff0c\u5b83\u5c06\u60a8\u7684\u5b58\u50a8\u5e93\u514b\u9686\u5230\u865a\u62df\u73af\u5883\u4e2d\uff0c\u7136\u540e\u6267\u884c\u4e00\u7cfb\u5217<em>\u9636\u6bb5\uff0c<\/em>\u4f8b\u5982\u7f16\u8bd1\u4ee3\u7801\uff0c\u8fd0\u884c\u6d4b\u8bd5\u7b49\u3002\u5982\u679c<code>script<\/code><em>\u9636\u6bb5<\/em>\u7684\u8fd4\u56de\u4ee3\u7801 \u975e\u96f6\uff0c\u5219\u4f5c\u4e1a\u5931\u8d25\u3002<\/li><li><em>build\uff08\u6784\u5efa\uff09<\/em> &#8211; \u4e00\u7ec4<em>\u5de5\u4f5c<\/em>\u3002\u4f8b\u5982\uff0c\u4e00\u6b21\u6784\u5efa\u53ef\u80fd\u6709\u4e24\u4e2a<em>\u4f5c\u4e1a<\/em>\uff0c\u6bcf\u4e2a<em>\u4f5c\u4e1a<\/em>\u4f7f\u7528\u4e0d\u540c\u7248\u672c\u7684\u7f16\u7a0b\u8bed\u8a00\u6d4b\u8bd5\u9879\u76ee\u3002\u4e00\u6b21<em>\u6784\u5efa<\/em>\u662f\u5728\u6240\u6709\u4f5c\u4e1a\u5b8c\u6210\u540e\u7ed3\u675f\u3002<\/li><li><em>stage<\/em> &#8211; \u4f5c\u4e3a\u7531\u591a\u4e2a<a href=\"https:\/\/docs.travis-ci.com\/user\/build-stages\/\">\u9636\u6bb5<\/a>\u7ec4\u6210\u7684\u987a\u5e8f\u6784\u5efa\u8fc7\u7a0b\u7684\u4e00\u90e8\u5206\u5e76\u884c\u8fd0\u884c\u7684\u4e00\u7ec4<em>\u4f5c\u4e1a<\/em>\u3002 a group of <em>jobs<\/em> that run in parallel as part of a sequential build process composed of multiple <a href=\"https:\/\/docs.travis-ci.com\/user\/build-stages\/\">stages<\/a>.  <\/li><li><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u5f85\u4f18\u5316&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/em><\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u6784\u5efa\u5931\u8d25 Breaking the Build<\/h4>\n\n\n\n<p>\u5f53\u4e00\u4e2a\u6216\u591a\u4e2a\u5de5\u4f5c\u5728\u7ed3\u675f\u65f6\u662f\u6ca1\u6709\u901a\u8fc7\u7684\u72b6\u6001\uff0c\u90a3\u4e48\u8fd9\u6b21\u6784\u5efa\u5219\u88ab\u8ba4\u4e3a\u662f\u5931\u8d25\u7684:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><em>errored<\/em>(\u9519\u8bef)\uff1a\u5728 before_install \uff0cinstall \u6216\u8005 before_script \u9636\u6bb5\u8fd0\u884c\u7684\u4e00\u6761\u6307\u4ee4\u8fd4\u56de\u6765\u4e00\u4e2a\u975e\u96f6\u9000\u51fa\u7801\u3002\u90a3\u4e48\u8fd9\u4e2a\u5de5\u7ec4\u5219\u4f1a\u7acb\u523b\u505c\u6b62\u3002<\/li><li><em>failed<\/em> (\u5931\u8d25)\uff1a\u5728 script \u9636\u6bb5\u8fd0\u884c\u7684\u4e00\u6761\u547d\u4ee4\u8fd4\u56de\u4e00\u4e2a\u975e\u96f6\u9000\u51fa\u7801\u3002\u8fd9\u4e2a\u5de5\u4f5c\u4f1a\u7ee7\u7eed\u76f4\u5230\u5b8c\u6210\u3002<\/li><li><em>canceled<\/em>(\u53d6\u6d88)\uff1a\u7528\u6237\u5728\u5de5\u4f5c\u5b8c\u6210\u4e4b\u524d\u53d6\u6d88\u3002<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u57fa\u7840\u73af\u5883<\/h4>\n\n\n\n<p>Travis CI\u63d0\u4f9b\u4e86\u4e00\u4e9b\u4e0d\u540c\u7684\u57fa\u7840\u73af\u5883\uff0c\u6240\u4ee5\u60a8\u53ef\u4ee5\u9009\u62e9\u6700\u9002\u5408\u60a8\u7684\u9879\u76ee\u7684\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>*Ubuntu Linux-\u8fd9\u4e9bLinux Ubuntu\u73af\u5883\u5b8c\u5168\u5728\u865a\u62df\u673a\u5185\u8fd0\u884c\uff0c\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u8ba1\u7b97\u8d44\u6e90\uff0c\u5e76\u652f\u6301\u4f7f\u7528<code>sudo<\/code>\uff0c<code>setuid<\/code>\u548c<code>setgid<\/code>\u3002\u67e5\u770b\u6709\u5173<a href=\"https:\/\/docs.travis-ci.com\/user\/reference\/linux\/\">Ubuntu Linux Build Environment<\/a>\u66f4\u591a\u4fe1\u606f\u3002<\/li><li><em>macOS<\/em> &#8211; \u4f7f\u7528macOS\u64cd\u4f5c\u7cfb\u7edf\u7684\u51e0\u4e2a\u7248\u672c\u4e4b\u4e00\u3002\u6b64\u73af\u5883\u5bf9\u4e8e\u6784\u5efa\u9700\u8981macOS\u8f6f\u4ef6\u7684\u9879\u76ee\u975e\u5e38\u6709\u7528\uff0c\u4f8b\u5982\u7528Swift\u7f16\u5199\u7684\u9879\u76ee\u3002\u5982\u679c\u60a8\u5728macOS\u8ba1\u7b97\u673a\u4e0a\u8fdb\u884c\u5f00\u53d1\uff0c\u5219\u4e0d\u8981\u6c42\u4f7f\u7528macOS\u73af\u5883\u3002\u5728\u8fd9\u91cc\uff0c\u60a8\u53ef\u4ee5\u627e\u5230\u6709\u5173<a href=\"https:\/\/docs.travis-ci.com\/user\/reference\/osx\/\">macOS\u6784\u5efa\u73af\u5883<\/a>\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\u3002<\/li><li><em>Windows<\/em> &#8211; \u76ee\u524d\u652f\u6301Windows Server\u7248\u672c1803\u3002\u5982\u679c\u60a8\u60f3\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605<a href=\"https:\/\/docs.travis-ci.com\/user\/reference\/windows\/\">Windows Build Environment<\/a>\u3002<\/li><\/ul>\n\n\n\n<p>\u6709\u5173\u6784\u5efa\u73af\u5883\u7684\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605<a href=\"https:\/\/docs.travis-ci.com\/user\/ci-environment\/\">CI\u73af\u5883<\/a>\u6587\u6863\u3002<\/p>\n\n\n\n<p>\u73b0\u5728\u60a8\u5df2\u7ecf\u9605\u8bfb\u4e86\u57fa\u7840\u77e5\u8bc6\uff0c\u8bf7\u8bbf\u95ee\u6211\u4eec\u7684<a href=\"https:\/\/docs.travis-ci.com\/user\/tutorial\/\">\u6559\u7a0b<\/a>\uff0c\u4e86\u89e3\u6709\u5173\u8bbe\u7f6e\u9996\u6b21\u6784\u5efa\u7684\u8be6\u7ec6\u4fe1\u606f\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Travis CI \u6559\u7a0b<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u8fd9\u662f\u4e00\u4efd\u544a\u8bc9\u4f60 GitHub \u4e0eTravis CI \u5982\u4f55\u4e00\u8d77\u4f7f\u7528\u7684\u7b80\u77ed\u6559\u7a0b\u3002\u5982\u679c\u60a8\u662f\u521a\u521a\u63a5\u89e6\u6301\u7eed\u96c6\u6210\uff0c\u6216\u8005\u60f3\u4e86\u89e3\u66f4\u591a\u5173\u4e8eTravis CI\u7684\u4fe1\u606f\uff0c\u8bf7\u4ece\u521d\u5b66\u8005\u5e94\u8be5\u4e86\u89e3\u7684\u6838\u5fc3\u6982\u5ff5\u5f00\u59cb\u3002<\/p><\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\">\u524d\u671f\u51c6\u5907<\/h4>\n\n\n\n<p>\u5728\u5f00\u59cb\u4f7f\u7528Travis CI\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u5177\u5907\u4ee5\u4e0b\u6761\u4ef6\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u4e00\u4e2a GitHub \u8d26\u53f7<\/li><li>\u62e5\u6709\u6258\u7ba1\u5728GitHub\u4e0a\u7684\u9879\u76ee\u7684\u6240\u6709\u8005\u6743\u9650<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u5f00\u59cb<\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li>\u8bbf\u95ee <a href=\"https:\/\/travis-ci.com\">Travis-ci.com<\/a> \u5e76\u4e14\u4f7f\u7528 Github \u8d26\u53f7\u8fdb\u884c<a href=\"https:\/\/travis-ci.com\/signin\">\u6ce8\u518c<\/a><\/li><li>\u5141\u8bb8\u6388\u6743\u7ed9 Travis CI \uff0c\u4f60\u5c06\u88ab\u91cd\u5b9a\u5411\u5230 GitHub \u7f51\u7ad9\u3002<\/li><li>\u70b9\u51fb\u7eff\u8272\u7684\u6fc0\u6d3b\u6309\u94ae\uff0c\u5e76\u4e14\u9009\u62e9\u4f60\u9700\u8981\u540c\u6b65\u5230 Travis CI \u4e2d\u7684\u4ed3\u5e93\u3002<\/li><li>\u5728\u4f60\u7684\u4ed3\u5e93\u4e2d\u65b0\u589e\u4e00\u4e2a\u540d\u4e3a <em>.travis.yml<\/em> \u7684\u6587\u4ef6\u6765\u8ba9 Travis CI \u77e5\u9053\u5e94\u8be5\u600e\u4e48\u505a\u3002\u4ee5\u4e0b\u793a\u4f8b\u6307\u5b9a\u5e94\u4f7f\u7528Ruby 2.2\u548c\u6700\u65b0\u7248\u672c\u7684JRuby\u6784\u5efa\u7684Ruby\u9879\u76ee\u3002<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">language: ruby\nrvm:\n  - 2.2\n  - jruby<\/pre>\n\n\n\n<p>\u200b    \u5bf9\u4e8eRuby\u9879\u76ee\u4f1a\u9ed8\u8ba4<em>bundle install<\/em>(\u6346\u7ed1\u5b89\u88c5) \u6765\u5b89\u88c5\u6240\u9700\u4f9d\u8d56\uff0c\u5e76\u4e14<em>rake<\/em> \u6784\u5efa\u9879\u76ee\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u5c06 <em>.travis.yml<\/em> \u6587\u4ef6\u52a0\u5230 git \u4e2d\uff0c\u63d0\u4ea4\u5e76\u4e14\u63a8\u9001\u6765\u89e6\u53d1Travis CI\u6784\u5efa\uff1a<\/li><\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Travis \u53ea\u6709\u5728\u4f60\u5c06 .travis.yml \u6587\u4ef6\u63d0\u4ea4\u5e76\u63a8\u9001\u540e\u624d\u4f1a\u6267\u884c\u6784\u5efa\u3002 <\/p><\/blockquote>\n\n\n\n<ol class=\"wp-block-list\"><li>\u901a\u8fc7\u8bbf\u95eeTravis CI\u5e76\u9009\u62e9\u5b58\u50a8\u5e93\uff0c\u68c0\u67e5\u6784\u5efa\u72b6\u6001\u9875\u9762\uff0c\u6839\u636e\u6784\u5efa\u547d\u4ee4\u7684\u8fd4\u56de\u72b6\u6001\u6765\u67e5\u770b\u6784\u5efa\u901a\u8fc7\u8fd8\u662f\u5931\u8d25\u3002\n\u9009\u62e9\u5176\u4ed6\u7a0b\u5e8f\u8bed\u8a00<\/li><\/ol>\n\n\n\n<p>\u4f7f\u7528\u4e0b\u9762\u7684\u8fd9\u4e9b\u8bed\u8a00\u4e2d\u7684\u5176\u4e2d\u4e00\u79cd\uff1a<\/p>\n\n\n\n<p>.travis.yml<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">language: ruby\nlanguage: java\nlanguage: node_js\nlanguage: python\nlanguage: php<\/pre>\n\n\n\n<p>\u5982\u679c\u4f60\u7684\u6d4b\u8bd5\u9700\u8981\u5728 macOS \u6216\u8005\u4f60\u7684\u9879\u76ee\u4f7f\u7528 Swift \u3001Object-C \u7f16\u5199\uff0c\u8bf7\u4f7f\u7528\u6211\u4eec\u7684 macOS\u73af\u5883\u3002<\/p>\n\n\n\n<p>.travis.yml<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">os: osx<\/pre>\n\n\n\n<p>\u5982\u679c\u60a8\u5728Mac\u4e0a\u8fdb\u884c\u5f00\u53d1\uff0c\u5219\u4e0d\u4e00\u5b9a\u9700\u8981\u4f7f\u7528macOS\u3002\u5982\u679c\u60a8\u9700\u8981Swift\uff0cObjective-C\u6216\u5176\u4ed6\u7279\u5b9a\u4e8emacOS\u7684\u8f6f\u4ef6\uff0c\u5219\u4ec5\u9700\u8981macOS\u3002<\/p>\n\n\n\n<p>Travis CI\u652f\u6301\u8bb8\u591a<a href=\"https:\/\/docs.travis-ci.com\/user\/languages\/\">\u7f16\u7a0b\u8bed\u8a00<\/a>\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u66f4\u591a\u529f\u80fd<\/h4>\n\n\n\n<p>Travis CI\u4e0d\u53ea\u662f\u7528\u4e8e\u8fd0\u884c\u6d4b\u8bd5\uff0c\u8fd8\u6709\u8bb8\u591a\u5176\u4ed6\u529f\u80fd\u6765\u5e94\u7528\u4f60\u7684\u4ee3\u7801\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u90e8\u7f72\u5230 <a href=\"https:\/\/docs.travis-ci.com\/user\/deployment\/pages\/\">GitHub pages<\/a><\/li><li>\u5728 <a href=\"https:\/\/docs.travis-ci.com\/user\/deployment\/heroku\/\">Heroku<\/a> \u8fd0\u884capps<\/li><li>\u4e0a\u4f20 <a href=\"https:\/\/docs.travis-ci.com\/user\/deployment\/rubygems\/\">RubyGems<\/a><\/li><li>\u53d1\u9001<a href=\"https:\/\/docs.travis-ci.com\/user\/notifications\/\">notifications<\/a><\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u9605\u8bfb\u66f4\u591a<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/docs.travis-ci.com\/user\/customizing-the-build\">customizing your build<\/a><\/li><li><a href=\"https:\/\/docs.travis-ci.com\/user\/best-practices-security\/\">security best practices<\/a><\/li><li><a href=\"https:\/\/docs.travis-ci.com\/user\/build-stages\/\">build stages<\/a><\/li><li><a href=\"https:\/\/docs.travis-ci.com\/user\/customizing-the-build\/#build-matrix\">build matrixes<\/a><\/li><li><a href=\"https:\/\/docs.travis-ci.com\/user\/installing-dependencies\">installing dependencies<\/a><\/li><li><a href=\"https:\/\/docs.travis-ci.com\/user\/database-setup\/\">setting up databases<\/a><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u81ea\u5b9a\u4e49\u6784\u5efa<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u6784\u5efa\u8d85\u65f6<\/h4>\n\n\n\n<p>\u6302\u8d77\u6d4b\u8bd5\u7ec4\u4ef6\u6216\u8005\u6784\u5efa\u811a\u672c\u5341\u5206\u5e38\u89c1\u3002Travis CI \u5bf9\u4e8e\u6bcf\u4e2ajob\u90fd\u6709\u7279\u5b9a\u7684\u65f6\u957f\u9650\u5236\uff0c\u5f53\u51fa\u73b0\u4ee5\u4e0b\u60c5\u5f62\u65f6\u5c06\u4f1a\u505c\u6b62\u6784\u5efa\uff0c\u5e76\u4e14\u5728\u6784\u5efa\u65e5\u5fd7\u4e2d\u6dfb\u52a0\u4e00\u6761\u9519\u8bef\u4fe1\u606f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5f53\u4e00\u4e2a job \u8d85\u8fc7\u5341\u5206\u949f\u6ca1\u6709\u65e5\u5fd7\u8f93\u51fa<\/li><li>\u5f53\u516c\u5171\u5e93\u4e0a\u5b58\u50a8\u7684\u4f5c\u4e1a\u82b1\u8d39\u8d85\u8fc750\u5206\u949f\u65f6\u3002<\/li><li>\u5f53\u79c1\u6709\u5e93\u4e0a\u5b58\u50a8\u7684\u4f5c\u4e1a\u82b1\u8d39\u8d85\u8fc7120\u5206\u949f\u65f6\u3002<\/li><\/ul>\n\n\n\n<p>\u4e0b\u9762\u662f\u4e00\u4e9b\u5bfc\u81f4\u6784\u5efa\u6302\u8d77\u7684\u5e38\u89c1\u539f\u56e0\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u7b49\u5f85\u952e\u76d8\u8f93\u5165\u6216\u8005\u5176\u5b83\u7684\u4e00\u4e9b\u4e0e\u7528\u6237\u4ea4\u4e92\u884c\u4e3a<\/li><li>\u5e76\u53d1\u95ee\u9898\uff08\u6b7b\u9501\u3001\u6d3b\u9501\u7b49\u7b49\uff09<\/li><li>\u5b89\u88c5\u9700\u8981\u7f16\u8bd1\u5f88\u957f\u65f6\u95f4\u7684\u672c\u5730\u6269\u5c55<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u6784\u5efa\u6ca1\u6709\u8d85\u65f6;\u53ea\u8981\u9700\u8981\u5b8c\u6210\u6240\u6709 jobs\uff0c\u6784\u5efa\u5c31\u4f1a\u8fd0\u884c\uff0c\u4f46\u5982\u679c\u4efb\u4f55 job \u8fbe\u5230\u8d85\u65f6\u9650\u5236\uff0c\u5219\u4f1a\u7acb\u5373\u505c\u6b62\u3002<\/p><\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\">\u6784\u5efa\u7684\u58f0\u660e\u5468\u671f<\/h4>\n\n\n\n<p>\u6784\u5efa\u7684\u751f\u547d\u5468\u671f\u8be6\u60c5\u8bf7\u70b9\u51fb \u8fd9\u91cc <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u9650\u5236\u5e76\u53d1\u4f5c\u4e1a\uff08jobs\uff09<\/h4>\n\n\n\n<p>\u6700\u5927\u7684\u5de5\u4f5c\u5e76\u53d1\u6570\u91cf\u53d6\u51b3\u4e8e\u7cfb\u7edf\u603b\u8d1f\u8f7d\uff0c\u4f46\u662f\u6709\u4e00\u79cd\u60c5\u51b5\u4e0b\u4f60\u53ef\u80fd\u4f1a\u5e0c\u671b\u8bbe\u7f6e\u4e00\u4e2a\u7279\u6b8a\u7684\u9650\u5236\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5982\u679c\u4f60\u7684\u6784\u5efa\u4f9d\u8d56\u4e8e\u5916\u90e8\u8d44\u6e90\uff0c\u5e76\u53d1\u7684\u5de5\u4f5c\u53ef\u80fd\u4f1a\u7ade\u4e89\u5bf9\u8d44\u6e90\u7684\u4f7f\u7528\u3002\uff08\u8bd1\u8005\u6ce8\uff1a\u4e92\u65a5\uff09<\/li><\/ul>\n\n\n\n<p>\u5728\u6bcf\u4e00\u4e2a\u4ed3\u5e93\uff08repository\uff09\u7684\u8bbe\u7f6e\u754c\u9762\u4e2d\uff0c\u4f60\u90fd\u53ef\u4ee5\u5728\u8bbe\u7f6e\u5e76\u53d1\u5de5\u4f5c\u7684\u6700\u5927\u6570\u91cf\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/ww1.sinaimg.cn\/large\/005JrrEOly1g5thhq77wxj30rs0cidhi.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u6216\u8005\u5728\u5ba2\u6237\u7aef\u4f7f\u7528\u547d\u4ee4\u884c:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">travis settings maximum_number_of_builds --set 1<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ec5\u6784\u5efa\u6700\u65b0\u63d0\u4ea4<\/h4>\n\n\n\n<p>\u5982\u679c\u60a8\u53ea\u5bf9\u5728\u6bcf\u4e2a\u5206\u652f\u4e0a\u6784\u5efa\u6700\u65b0\u63d0\u4ea4\u611f\u5174\u8da3\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u6b64\u65b0\u529f\u80fd\u81ea\u52a8\u53d6\u6d88\u961f\u5217\u4e2d\u5c1a\u672a\u8fd0\u884c\u7684\u65e7\u7248\u672c\u3002\u73b0\u6709\u7684\u6784\u5efa\u5c06\u88ab\u5141\u8bb8\u5b8c\u6210\u3002<\/p>\n\n\n\n<p>\u81ea\u52a8\u53d6\u6d88\u8bbe\u7f6e\u4f4d\u4e8e\u6bcf\u4e2a\u5b58\u50a8\u5e93\u7684\u201c\u8bbe\u7f6e\u201d\u9009\u9879\u5361\u4e2d\uff0c\u60a8\u53ef\u4ee5\u5355\u72ec\u542f\u7528\u5b83\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u81ea\u52a8\u53d6\u6d88\u5206\u652f\u6784\u5efa-\u53d6\u6d88\u961f\u5217\u4e2d\u5206\u652f\u7684\u6784\u5efa\u5e76\u4e14\u4f1a\u51fa\u73b0\u5728\u4f60\u4ed3\u5e93\u7684\u6784\u5efa\u5386\u53f2\u9875\u4e0a\u3002<\/li><li>\u81ea\u52a8\u53d6\u6d88\u62c9\u53d6\u8bf7\u6c42\u6784\u5efa &#8211; \u53d6\u6d88\u62c9\u53d6\u8bf7\u6c42\u7684\u6392\u961f\u6784\u5efa\uff08the future merge result of your change\/feature branch against its target\uff09\uff0c\u5e76\u663e\u793a\u5728\u5b58\u50a8\u5e93\u7684\u201c\u62c9\u53d6\u8bf7\u6c42\u201d\u9009\u9879\u5361\u4e2d\u3002<\/li><li><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/ww1.sinaimg.cn\/large\/005JrrEOly1g5thurfefxj31do0ayjse.jpg\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p>\u4f8b\u5982\uff0c\u5728\u4e0b\u9762\u7684\u5c4f\u5e55\u622a\u56fe\u4e2d\uff0c\u6211\u4eec\u5c06\u63d0\u4ea4ca31c2b\u63a8\u9001\u5230\u5206\u652fMdA-fix-notice\uff0c\u800c\u6784\u5efa\uff03226\u548c\uff03227\u6392\u961f\u3002\u542f\u7528\u81ea\u52a8\u53d6\u6d88\u529f\u80fd\u540e\uff0c\u6784\u5efa\uff03226\u548c\uff03227\u4f1a\u81ea\u52a8\u53d6\u6d88\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/ww1.sinaimg.cn\/large\/005JrrEOly1g5thudwcbvj30go04r0t1.jpg\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Git \u514b\u9686\u6df1\u5ea6<\/h4>\n\n\n\n<p>Travis CI\u53ef\u4ee5\u5c06\u5b58\u50a8\u5e93\u514b\u9686\u5230\u6700\u5927\u6df1\u5ea6\u4e3a50\u6b21\u63d0\u4ea4\uff0c\u8fd9\u5728\u60a8\u6267\u884cgit\u64cd\u4f5c\u65f6\u624d\u771f\u6b63\u6709\u7528\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u60a8\u4f7f\u7528\u6df1\u5ea6\u4e3a1\u5e76\u4e14\u5177\u6709\u4f5c\u4e1a\u961f\u5217\uff0c\u5219\u5728\u60a8\u63a8\u9001\u65b0\u63d0\u4ea4\u65f6\uff0cTravis CI\u5c06\u4e0d\u4f1a\u6784\u5efa\u961f\u5217\u4e2d\u7684\u63d0\u4ea4\u3002<\/p><\/blockquote>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u5728 <code>.travis.yml<\/code> \u4e2d\u8bbe\u7f6e\u514b\u9686\u6df1\u5ea6:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">git:\n  depth: 3<\/pre>\n\n\n\n<p>\u4f60\u4e5f\u53ef\u4ee5\u79fb\u9664 <code>--depth<\/code> \u7684\u503c\uff0c\u4f7f\u7528\u4e0b\u9762\u8fd9\u79cd\u65b9\u5f0f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">git:\n  depth: false<\/pre>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\"> \u5728\u4ed3\u5e93\u4e2d\u7684\u4e00\u4e9b\u64cd\u4f5c\uff0c\u4f8b\u5982\u5e38\u89c1\u7684\u81ea\u52a8\u4ee3\u7801\u5ba1\u67e5\u811a\u672c*(e.g. Pronto for Ruby)* \uff0c\u7531\u4e8e`git clone`\u7684\u9650\u5236\u4e0d\u80fd\u8bbf\u95ee\u4ed3\u5e93\u4e2d\u7684\u6240\u6709\u5bf9\u8c61\u800c\u5bfc\u81f4\u64cd\u4f5c\u5931\u8d25\u3002\u79fb\u9664`depth flag` ,\u5e76\u4e14\u8fd0\u884c `git fetch --unshallow` \u5e94\u8be5\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Git \u65e0\u75d5\u514b\u9686<\/h4>\n\n\n\n<p>Travis CI \u514b\u9686\u4ed3\u5e93\u4ee3\u7801\u65f6\u9ed8\u8ba4\u4e0d\u4f7f\u7528 quiet \u53c2\u6570\u3002\u5f53\u7136\u5982\u679c\u4f60\u60f3\u8981\u907f\u514d\u65e5\u5fd7\u6587\u4ef6\u5927\u5c0f\u7684\u9650\u5236\u6216\u8005\u4f60\u6839\u672c\u4e0d\u60f3\u8981\u65e5\u5fd7\u6587\u4ef6\u8bb0\u5f55\u6b64\u6b21\u514b\u9686\u90a3\u4e48\u542f\u7528<code>quiet flag<\/code> \u662f\u5341\u5206\u6709\u7528\u7684\u3002<\/p>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u5728<code>.travis.yml<\/code>\u4e2d\u542f\u7528 <a href=\"https:\/\/git-scm.com\/docs\/git-clone#git-clone---quiet\"><code>quiet flag<\/code><\/a>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">git:\n  quiet: true<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Git \u5b50\u6a21\u5757<\/h4>\n\n\n\n<p>Travis CI \u9ed8\u8ba4\u514b\u9686Git \u5b50\u6a21\u5757\uff0c\u5982\u679c\u4e0d\u60f3\u8fd9\u4e48\u505a\u7684\u8bdd\u8bf7\u4f7f\u7528\u4e0b\u9762\u8fd9\u79cd\u65b9\u5f0f\u8fdb\u884c\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">git:\n  submodules: false<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Git LFS\uff08\u5927\u6587\u4ef6\u5b58\u50a8\uff09<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u8ba4\u8bc1<\/h5>\n\n\n\n<p>\u5f53\u4f7f\u7528 Git LFS \u7684\u65f6\u5019\uff0c\u6211\u4eec\u63a8\u8350\u4f7f\u7528\u53ea\u8bfb\u7684 GitHub OAuth \u4ee4\u724c\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">before_install:\n- echo -e \"machine github.com\\n  login $GITHUB_TOKEN\" &gt; ~\/.netrc\n- git lfs pull<\/pre>\n\n\n\n<p>\u5f53\u8fde\u63a5\u79c1\u6709\u4ed3\u5e93\u65f6\u4f1a\u9700\u8981\u8fd9\u79cd\u8ba4\u8bc1\uff0c\u5e76\u5728\u8fde\u63a5\u5230\u5f00\u6e90\u4ed3\u5e93\u65f6\u963b\u6b62\u901f\u7387\u9650\u5236\u3002<\/p>\n\n\n\n<p>LFS\u76ee\u524d\u4e0d\u652f\u6301\u90e8\u7f72\u5bc6\u94a5\uff0c\u56e0\u6b64\u60a8\u5e94\u8be5\u4f7f\u7528GitHub OAuth\u4ee4\u724c\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\uff0c\u5982\u4e0a\u4f8b\u6240\u793a\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Linux<\/h5>\n\n\n\n<p>\u5728Ubuntu Trusty\uff0cXenial \u548c Bionic images \u9ed8\u8ba4\u652f\u6301 Git LFS\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">macOS<\/h5>\n\n\n\n<p>\u5728 macOS \u4e0a\u63a8\u8350\u4f7f\u7528<code>brew<\/code> \u6765\u5b89\u88c5<code>git-lfs<\/code>\u7684\u65b9\u6cd5\u6765\u83b7\u53d6 Git LFS \u3002<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">os: osx\nbefore_install:\n- brew install git-lfs\nbefore_script:\n- git lfs pull<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><s>\u672a\u5b8c\u5f85\u7eed&#8230; &#8230;<\/s><\/h3>\n\n\n\n<p>\u6ca1\u6709\u4e86\uff0c\u4e0d\u7ffb\u8bd1\u4e86\uff5e\uff5e\uff5e\uff0822.03.06\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5feb\u901f\u5f00\u59cb \u521d\u5b66\u8005\u5e94\u8be5\u4e86\u89e3\u7684\u4e00\u4e9b\u6838\u5fc3\u6982\u5ff5 \u6b22\u8fce\u6765\u5230 Travis CI\uff01\u6b64\u9875\u9762\u63d0\u4f9b\u4e86\u6574\u4e2a\u5e73\u53f0\u548c\u6587\u6863\u4e2d\u4f7f\u7528\u7684\u4e00\u4e9b\u4e0a &hellip; <a href=\"https:\/\/www.changxuan.top\/?p=499\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Travis CI\u4e2d\u6587\u6587\u6863<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[62,65],"class_list":["post-499","post","type-post","status-publish","format-standard","hentry","category-54","tag-travis","tag-65"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Travis CI\u4e2d\u6587\u6587\u6863 - \u5e38\u8f69<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.changxuan.top\/?p=499\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Travis CI\u4e2d\u6587\u6587\u6863 - \u5e38\u8f69\" \/>\n<meta property=\"og:description\" content=\"\u5feb\u901f\u5f00\u59cb \u521d\u5b66\u8005\u5e94\u8be5\u4e86\u89e3\u7684\u4e00\u4e9b\u6838\u5fc3\u6982\u5ff5 \u6b22\u8fce\u6765\u5230 Travis CI\uff01\u6b64\u9875\u9762\u63d0\u4f9b\u4e86\u6574\u4e2a\u5e73\u53f0\u548c\u6587\u6863\u4e2d\u4f7f\u7528\u7684\u4e00\u4e9b\u4e0a &hellip; \u7ee7\u7eed\u9605\u8bfbTravis CI\u4e2d\u6587\u6587\u6863\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.changxuan.top\/?p=499\" \/>\n<meta property=\"og:site_name\" content=\"\u5e38\u8f69\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-18T07:58:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-06T12:54:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ww1.sinaimg.cn\/large\/005JrrEOly1g5thhq77wxj30rs0cidhi.jpg\" \/>\n<meta name=\"author\" content=\"\u5e38\u8f69\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5e38\u8f69\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=499#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=499\"},\"author\":{\"name\":\"\u5e38\u8f69\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#\\\/schema\\\/person\\\/08c8f0af44536928094dc1b4f88da3bd\"},\"headline\":\"Travis CI\u4e2d\u6587\u6587\u6863\",\"datePublished\":\"2019-09-18T07:58:12+00:00\",\"dateModified\":\"2022-03-06T12:54:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=499\"},\"wordCount\":234,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#\\\/schema\\\/person\\\/08c8f0af44536928094dc1b4f88da3bd\"},\"image\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=499#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ww1.sinaimg.cn\\\/large\\\/005JrrEOly1g5thhq77wxj30rs0cidhi.jpg\",\"keywords\":[\"Travis\",\"\u4e2d\u6587\u6587\u6863\"],\"articleSection\":[\"\u6559\u7a0b\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.changxuan.top\\\/?p=499#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=499\",\"url\":\"https:\\\/\\\/www.changxuan.top\\\/?p=499\",\"name\":\"Travis CI\u4e2d\u6587\u6587\u6863 - \u5e38\u8f69\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=499#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=499#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ww1.sinaimg.cn\\\/large\\\/005JrrEOly1g5thhq77wxj30rs0cidhi.jpg\",\"datePublished\":\"2019-09-18T07:58:12+00:00\",\"dateModified\":\"2022-03-06T12:54:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=499#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.changxuan.top\\\/?p=499\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=499#primaryimage\",\"url\":\"https:\\\/\\\/ww1.sinaimg.cn\\\/large\\\/005JrrEOly1g5thhq77wxj30rs0cidhi.jpg\",\"contentUrl\":\"https:\\\/\\\/ww1.sinaimg.cn\\\/large\\\/005JrrEOly1g5thhq77wxj30rs0cidhi.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/?p=499#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/www.changxuan.top\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Travis CI\u4e2d\u6587\u6587\u6863\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#website\",\"url\":\"https:\\\/\\\/www.changxuan.top\\\/\",\"name\":\"\u5e38\u8f69\",\"description\":\"\u95fb\u9053\u6709\u5148\u540e\uff0c\u672f\u4e1a\u6709\u4e13\u653b-\u4e00\u4e8c\u4e09\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#\\\/schema\\\/person\\\/08c8f0af44536928094dc1b4f88da3bd\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.changxuan.top\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/#\\\/schema\\\/person\\\/08c8f0af44536928094dc1b4f88da3bd\",\"name\":\"\u5e38\u8f69\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/IMG_008520200606-095631.jpg\",\"url\":\"https:\\\/\\\/www.changxuan.top\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/IMG_008520200606-095631.jpg\",\"contentUrl\":\"https:\\\/\\\/www.changxuan.top\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/IMG_008520200606-095631.jpg\",\"width\":960,\"height\":960,\"caption\":\"\u5e38\u8f69\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.changxuan.top\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/IMG_008520200606-095631.jpg\"},\"description\":\"\u603b\u8981\u505a\u70b9\u4ec0\u4e48\u5427\uff01\",\"sameAs\":[\"https:\\\/\\\/www.changxuan.top\"],\"url\":\"https:\\\/\\\/www.changxuan.top\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Travis CI\u4e2d\u6587\u6587\u6863 - \u5e38\u8f69","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.changxuan.top\/?p=499","og_locale":"zh_CN","og_type":"article","og_title":"Travis CI\u4e2d\u6587\u6587\u6863 - \u5e38\u8f69","og_description":"\u5feb\u901f\u5f00\u59cb \u521d\u5b66\u8005\u5e94\u8be5\u4e86\u89e3\u7684\u4e00\u4e9b\u6838\u5fc3\u6982\u5ff5 \u6b22\u8fce\u6765\u5230 Travis CI\uff01\u6b64\u9875\u9762\u63d0\u4f9b\u4e86\u6574\u4e2a\u5e73\u53f0\u548c\u6587\u6863\u4e2d\u4f7f\u7528\u7684\u4e00\u4e9b\u4e0a &hellip; \u7ee7\u7eed\u9605\u8bfbTravis CI\u4e2d\u6587\u6587\u6863","og_url":"https:\/\/www.changxuan.top\/?p=499","og_site_name":"\u5e38\u8f69","article_published_time":"2019-09-18T07:58:12+00:00","article_modified_time":"2022-03-06T12:54:30+00:00","og_image":[{"url":"https:\/\/ww1.sinaimg.cn\/large\/005JrrEOly1g5thhq77wxj30rs0cidhi.jpg","type":"","width":"","height":""}],"author":"\u5e38\u8f69","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5e38\u8f69","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.changxuan.top\/?p=499#article","isPartOf":{"@id":"https:\/\/www.changxuan.top\/?p=499"},"author":{"name":"\u5e38\u8f69","@id":"https:\/\/www.changxuan.top\/#\/schema\/person\/08c8f0af44536928094dc1b4f88da3bd"},"headline":"Travis CI\u4e2d\u6587\u6587\u6863","datePublished":"2019-09-18T07:58:12+00:00","dateModified":"2022-03-06T12:54:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.changxuan.top\/?p=499"},"wordCount":234,"commentCount":0,"publisher":{"@id":"https:\/\/www.changxuan.top\/#\/schema\/person\/08c8f0af44536928094dc1b4f88da3bd"},"image":{"@id":"https:\/\/www.changxuan.top\/?p=499#primaryimage"},"thumbnailUrl":"https:\/\/ww1.sinaimg.cn\/large\/005JrrEOly1g5thhq77wxj30rs0cidhi.jpg","keywords":["Travis","\u4e2d\u6587\u6587\u6863"],"articleSection":["\u6559\u7a0b"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.changxuan.top\/?p=499#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.changxuan.top\/?p=499","url":"https:\/\/www.changxuan.top\/?p=499","name":"Travis CI\u4e2d\u6587\u6587\u6863 - \u5e38\u8f69","isPartOf":{"@id":"https:\/\/www.changxuan.top\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.changxuan.top\/?p=499#primaryimage"},"image":{"@id":"https:\/\/www.changxuan.top\/?p=499#primaryimage"},"thumbnailUrl":"https:\/\/ww1.sinaimg.cn\/large\/005JrrEOly1g5thhq77wxj30rs0cidhi.jpg","datePublished":"2019-09-18T07:58:12+00:00","dateModified":"2022-03-06T12:54:30+00:00","breadcrumb":{"@id":"https:\/\/www.changxuan.top\/?p=499#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.changxuan.top\/?p=499"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.changxuan.top\/?p=499#primaryimage","url":"https:\/\/ww1.sinaimg.cn\/large\/005JrrEOly1g5thhq77wxj30rs0cidhi.jpg","contentUrl":"https:\/\/ww1.sinaimg.cn\/large\/005JrrEOly1g5thhq77wxj30rs0cidhi.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.changxuan.top\/?p=499#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.changxuan.top\/"},{"@type":"ListItem","position":2,"name":"Travis CI\u4e2d\u6587\u6587\u6863"}]},{"@type":"WebSite","@id":"https:\/\/www.changxuan.top\/#website","url":"https:\/\/www.changxuan.top\/","name":"\u5e38\u8f69","description":"\u95fb\u9053\u6709\u5148\u540e\uff0c\u672f\u4e1a\u6709\u4e13\u653b-\u4e00\u4e8c\u4e09","publisher":{"@id":"https:\/\/www.changxuan.top\/#\/schema\/person\/08c8f0af44536928094dc1b4f88da3bd"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.changxuan.top\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.changxuan.top\/#\/schema\/person\/08c8f0af44536928094dc1b4f88da3bd","name":"\u5e38\u8f69","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.changxuan.top\/wp-content\/uploads\/2021\/04\/IMG_008520200606-095631.jpg","url":"https:\/\/www.changxuan.top\/wp-content\/uploads\/2021\/04\/IMG_008520200606-095631.jpg","contentUrl":"https:\/\/www.changxuan.top\/wp-content\/uploads\/2021\/04\/IMG_008520200606-095631.jpg","width":960,"height":960,"caption":"\u5e38\u8f69"},"logo":{"@id":"https:\/\/www.changxuan.top\/wp-content\/uploads\/2021\/04\/IMG_008520200606-095631.jpg"},"description":"\u603b\u8981\u505a\u70b9\u4ec0\u4e48\u5427\uff01","sameAs":["https:\/\/www.changxuan.top"],"url":"https:\/\/www.changxuan.top\/?author=1"}]}},"views":2478,"_links":{"self":[{"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/posts\/499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=499"}],"version-history":[{"count":4,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/posts\/499\/revisions"}],"predecessor-version":[{"id":1577,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=\/wp\/v2\/posts\/499\/revisions\/1577"}],"wp:attachment":[{"href":"https:\/\/www.changxuan.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.changxuan.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}