Skip to main content

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 JudgeLibrary 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[![Actions Status](https://github.com/kmyk/online-judge-verify-helper/workflows/verify/badge.svg)](https://github.com/kmyk/online-judge-verify-helper/actions) のように書いておくとよいでしょう。URL は適切に書き換えてください。 Actions Status のようなバッチが貼られ、verify に成功したかが簡単に確認できます。

License

MIT License

Authors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

online_judge_verify_helper-2.0.2-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

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

Hashes for online_judge_verify_helper-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a71915c0b738364e0b52563849417999df0998a2ebc2b8c7fa0f707d93c1a623
MD5 1b88d244b3ab6e9240c04417e6db2bf1
BLAKE2b-256 69d34e82008146fcff0e375c95cdba3b9d7c2ce92704bbd6fd49cfa42f061304

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page