Hydra/ja: Difference between revisions

Natsukium (talk | contribs)
Created page with "Hydra は Nix 公式プロジェクトのリリースに使われています。 公式の Hydra サーバーには次からアクセスできます。 https://hydra.nixos.org/"
 
Poske (talk | contribs)
Created page with "公式のHydraサーバーは、Nixpkgsのアップデート時間を短縮するためにあらかじめ構築されたバイナリパッケージを提供しています。ユーザーは自分でコンピューターでコンパイルする必要はありません。"
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages />
<languages />
<div lang="en" dir="ltr" class="mw-content-ltr">
{{note| HydraはNix/NixOSパッケージ開発者が使用することを目的としています。単にNixOSを利用しているだけの場合、使用する必要はありません。}}
Hydra is a tool for continuous integration testing and software release that uses a purely functional language to describe build jobs and their dependencies. Continuous integration is a simple technique to improve the quality of the software development process. An automated system continuously or periodically checks out the source code of a project, builds it, runs tests, and produces reports for the developers. Thus, various errors that might accidentally be committed into the code base are automatically caught.
 
</div>
Hydraは、構築されたジョブとその依存関係を説明するために純粋に機能的な言語を使用する、継続的な統合テストおよびソフトウェアリリースのためのツールである。継続的インテグレーションとは、ソフトウェア開発プロセスの品質を向上させるための簡単な手法である。自動化されたシステムは、プロジェクトのソースコードを継続的または定期的にチェックし、作成し、テストを実行し、開発者向けのレポートを生成する。したがって、誤ってコードベースに取り込まれた可能性のあるさまざまなエラーが自動的に検出される。


<div lang="en" dir="ltr" class="mw-content-ltr">
公式のHydraサーバーは、Nixpkgsのアップデート時間を短縮するためにあらかじめ構築されたバイナリパッケージを提供しています。ユーザーは自分でコンピューターでコンパイルする必要はありません。
The official Hydra servers provide pre-built binary packages to speed up the update time for Nixpgs: Users do not have to compile them on their own computers.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
Line 20: Line 18:
</div>
</div>


<syntaxHighlight lang=nix>
<syntaxhighlight lang="nix">
   services.hydra = {
   services.hydra = {
     enable = true;
     enable = true;
Line 27: Line 25:
     # a standalone Hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines
     # a standalone Hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines
     buildMachinesFiles = [];
     buildMachinesFiles = [];
     # you will probably also want, otherwise *everything* will be built from scratch
     # you will probably also want this, otherwise *everything* will be built from scratch
     useSubstitutes = true;
     useSubstitutes = true;
   };
   };
</syntaxHighlight>
</syntaxhighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
The module will automatically enable postgresql if you do not change the <code>services.hydra.dbi</code> option. Database layout will be created automatically by the Hydra service, however keep in mind that some state will be stored in the database and a complete stateless configuration is currently not possible - do your backups.
The module will automatically enable [[PostgreSQL|postgresql]] if you do not change the <code>services.hydra.dbi</code> option. Database layout will be created automatically by the Hydra service, however keep in mind that some state will be stored in the database and a complete stateless configuration is currently not possible - do your backups.
</div>
</div>


Line 66: Line 64:
   nix.buildMachines = [
   nix.buildMachines = [
     { hostName = "localhost";
     { hostName = "localhost";
      protocol = null;
       system = "x86_64-linux";
       system = "x86_64-linux";
       supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
       supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"];
Line 87: Line 86:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* Type: Flake
* Type: [[Flakes|Flake]]
</div>
</div>