Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI を回しましょう #1

Merged
merged 2 commits into from
Aug 6, 2019
Merged

CI を回しましょう #1

merged 2 commits into from
Aug 6, 2019

Conversation

kmyk
Copy link
Contributor

@kmyk kmyk commented Aug 5, 2019

テストを自動化します。
これをマージして https://travis-ci.org/ から設定すれば、push するたびにテストがいい感じになります (例: https://travis-ci.org/kmyk/competitive-programming-library )。

.test.cpp という形のファイルを置いておくと自動でコンパイルして自動で実行してくれます。
#define PROBLEM https://... みたいな形で URL を書いておくと、指定された問題のテストケースを取得して勝手にテストしてくれます (例: https://github.com/kmyk/competitive-programming-library/blob/master/data_structure/union_find_tree.test.cpp )。ただし AtCoder は未対応 (内部のテストケースをちゃんと公開してくれてないので) で、ほぼ AOJ 専用です。

@kmyk
Copy link
Contributor Author

kmyk commented Aug 5, 2019

バッジ Travis を README に足すやつ忘れてたので足しておいた。テスト結果によって色が変わります

@beet-aizu beet-aizu merged commit 6189bcb into beet-aizu:master Aug 6, 2019
@kmyk
Copy link
Contributor Author

kmyk commented Aug 6, 2019

なにもしていません。
そもそも実は #include<bits/stdc++.h> が使えるかどうかはコンパイラが GCC か Clang かとは無関係です。AtCoder の Clang で #include<bits/stdc++.h> がだめなのは AtCoder が特殊なオプション -stdlib=libc++ (C++ の標準ライブラリの内部実装に libstdc++ でなく libc++ を使う) を指定しているためです。

@beet-aizu
Copy link
Owner

なるほど(gcc拡張をゴリゴリ使ってるライブラリもあるのでclangは消します)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants