-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Travis CI rebased #681
Travis CI rebased #681
Conversation
whoohoo, PR integration working (and build passed!) |
I'm so excited for this! Please squash before merge. |
@@ -38,7 +38,7 @@ TEST_SRCS := $(filter-out $(TEST_MAIN_SRC), $(TEST_SRCS)) | |||
TEST_CU_SRCS := $(shell find src/$(PROJECT) -name "test_*.cu") | |||
GTEST_SRC := src/gtest/gtest-all.cpp | |||
# TEST_HDRS are the test header files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why HDR
? Everywhere else is HXX
.
Nice extension of the testing types and arranging into |
Thanks for taking a look @shelhamer! Squashed history, changed |
Add a test param to test both CPU and GPU (with both float and double Dtypes).
Makefile.config instead of CUSTOM_CXX, as Travis exports CXX as the compiler env variable name. -Change TEST_HDFS -> TEST_HXX_SRCS.
-Add (CPU-only) test, lint, warn and parallel (-j 4) to travis CI build. -Add /usr/local/lib to travis config (seems needed for LMDB). -Put export in "before_script"; disable clang build -- doesn't work on Linux. -Cache Ubuntu apt packages. -Install bc package to hopefully suppress "bc: not found" errors -Get apt packages before_install as suggested by Travis official docs -Remove specified email address and IRC notifications (emails are sent to the committer by default; others can view build results in public Travis feed, on pull requests, etc.).
exit with a non-zero code -- this fixes that.
Sidenote: much of the test time is downloading and installing the CUDA requirements plus doing the nvcc compilation, so this should act more lively once the device abstraction and CPU-only build are done. |
continuous integration for build, test, and lint by Travis CI
sweet, thanks for the quick merge |
Wait, I remember why I did @jeffdonahue can you revert the change to the Makefile to bring back the |
@shelhamer, right, I believe CXX and a few others are set to defaults by
|
Re-added |
@jeffdonahue travis sets the Witness:
See https://www.gnu.org/software/make/manual/html_node/Environment.html#Environment. |
I see -- so make lets the |
You can override the value with a |
Oh okay, that makes sense -- thanks for the explanation. |
continuous integration for build, test, and lint by Travis CI
continuous integration for build, test, and lint by Travis CI
Hi, I've taken PR #667 (thanks @huyng!) and rebased it onto some commits cutting down on the duplication between CPU and GPU tests to make it easier and more reliable to run only the CPU tests, and cut down on duplicated code throughout the test suite. I added a
make runtestnogpu
target to run only the tests that do not use the GPU (had to appendCPUGPU
to some tests that use both CPU and GPU and can't be separated).I made a few changes to the
.travis.yml
in d95aea8 for CPU-only testing and notification by email only going to the committer. Others can see build status on the PR or travis feed.