No project description provided
Project description
競プロライブラリ verify 用 すごい CI script (WIP)
使い方
かんたん Web 上インストール
https://kmyk.github.io/online-judge-verify-helper/
ターミナル上で実行
まず oj-verify コマンドを使えるようにします。
これには pip3 install online-judge-verify-helper を実行します。
テストを書いていきましょう。
.test.cpp という拡張子を持つ C++ のファイルを作って、その中で Aizu Online Judge や Library Checker の問題の URL を #define PROBLEM "URL" のように指定しておきます (例: example.test.cpp)。
そして oj-verify run を実行すると、そのようなファイルを自動で検出し、指定された問題に対し AC を得るかどうかを自動で判定してくれます。
最後に GitHub 上で自動で verify してくれるように設定しましょう。
oj-verify init を実行すると .github/workflow/verify.yml というファイルが作られます。
これを commit して GitHub に push しておけば終了です。
以後なにか push するたびに毎回自動で verify をしてくれます。
まとめると、以下を実行すればよいということになります。
$ pip3 install online-judge-verify-helper
$ wget https://raw.githubusercontent.com/kmyk/online-judge-verify-helper/master/example.test.cpp
$ oj-verify run
$ oj-verify init
$ git add .github/workflow/verify.yml
$ git add example.test.cpp
$ git commit -m "Add .github/workflow/verify.yml and example.test.cpp"
$ git push origin master
加えて README.md に [](https://github.com/kmyk/online-judge-verify-helper/actions) のように書いておくとよいでしょう。URL は適切に書き換えてください。
のようなバッチが貼られ、verify に成功したかが簡単に確認できます。
License
MIT License
Authors
- committer: @kmyk (AtCoder: kimiyuki): pip での配布や online-judge-tools などその他の諸々の担当
- committer: @beet-aizu (AtCoder: beet): verify 機能担当
- committer: @tsutaj (AtCoder: Tsuta_J): documents 生成担当
- special thanks: @yosupo06 (AtCoder: yosupo): verify のためのオンラインジャッジ Library Checker を管理運用してくれている
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file online_judge_verify_helper-2.0.2-py3-none-any.whl.
File metadata
- Download URL: online_judge_verify_helper-2.0.2-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a71915c0b738364e0b52563849417999df0998a2ebc2b8c7fa0f707d93c1a623
|
|
| MD5 |
1b88d244b3ab6e9240c04417e6db2bf1
|
|
| BLAKE2b-256 |
69d34e82008146fcff0e375c95cdba3b9d7c2ce92704bbd6fd49cfa42f061304
|