/
610.txt
61 lines (44 loc) · 2.76 KB
/
610.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[REFS[
- [2] [CITE@en[Travis CI - Distributed build platform for the open source community]]
( ([TIME[2012-04-08 11:34:45 +09:00]] 版))
<http://travis-ci.org/>
]REFS]
* 実行完了後の処理を指定する
[6] after_success は、複数の job が実行されるとき、そのそれぞれで実行される。
すべての job が成功した時だけ実行する方法は公式には用意されておらず、要望はあるが長期間放置されている [SRC[>>5]]。
;; [12] もう何年も経っているので、なおす気がなさそう。。。
[8] Travis の API を使って他の job の実行状況を監視し、すべて成功していたら最後に一度だけ実行するスクリプト [SRC[>>7]] が利用者により公開されている。
;; [11] しかし 1つのjob の実行時間上限を超えるほど他の job の実行完了まで時間がかかると、
エラーになってしまいます・・・。
[REFS[
- [5] [CITE@en[Single after_success callback after *all* builds · Issue #929 · travis-ci/travis-ci]] ([TIME[2015-10-08 19:52:34 +09:00]] 版) <https://github.com/travis-ci/travis-ci/issues/929>
- [7] [CITE@en[dmakhno/travis_after_all]] ([TIME[2015-10-08 19:54:53 +09:00]] 版) <https://github.com/dmakhno/travis_after_all>
]REFS]
[10] [CODE[[[after_success]]]] が失敗しても、失敗したことが無視されて全体として成功扱いになります。
[TIME[2015-12-20T15:07:41.800Z]]
* IRC over TLS で結果報告する
[9] [CITE@en[IRC notifications over SSL and unstandard ports are undocumented · Issue #428 · travis-ci/docs-travis-ci-com]]
([TIME[2015-12-14 18:49:30 +09:00]] 版)
<https://github.com/travis-ci/docs-travis-ci-com/issues/428>
* submodule を自動で update しない
[13] 今まで clone 時に submodule が自動的には init & update されていませんでしたが、
2016年4月に突然仕様変更があったようで、無限に再帰的に取得されるようになりました。
[15] [CODE[.travis.yml]] で
[PRE(code)[
git:
submodules: false
]PRE]
... と指定するとこの動作を無効化できます。
[REFS[
- [14] [CITE@en[Common Build Problems - Travis CI]] ([TIME[2016-04-30 10:42:25 +09:00]] 版) <https://docs.travis-ci.com/user/common-build-problems/#Git-Submodules-are-not-updated-correctly>
]REFS]
* メモ
[1] [CITE@en[Travis CI: Welcome to Travis CI]]
( ([TIME[2012-04-07 13:05:23 +09:00]] 版))
<http://about.travis-ci.org/>
[3] [CITE[Validate your .travis.yml file]]
( ([TIME[2014-05-12 09:59:10 +09:00]] 版))
<http://lint.travis-ci.org/>
[4] [CITE[Travis CI 使ってみた - 若葉もすなる☆日記というもの]]
( ([TIME[2013-08-09 03:44:52 +09:00]] 版))
<http://d.hatena.ne.jp/wakabatan/20120408/1333878824>