Maxim Biro
56432a44c6
Make sure logger levels stay in sync across files
2018-10-07 15:16:00 -04:00
Maxim Biro
f5afc52655
Default to not defining MIN_LOGGER_LEVEL in CMake
...
That way CMake's behavior matches what autotools does -- letting
toxcore/logger.h handle the default case.
2018-10-07 15:15:58 -04:00
iphydf
758bd9aa87
Fix yamllint test (it's gone from bazel, add a new one).
2018-09-19 09:55:58 +00:00
iphydf
e0f9f2f3a7
Use most recent version of Bazel (0.17.1).
2018-09-14 22:19:28 +00:00
iphydf
93cc178cfe
Add tool to find directly recursive calls in toxcore.
...
We should avoid recursion, as it makes reasoning about stack growth
harder. This tool shows (currently) 4 (non-tail) recursive functions, at
least 2 of which are easy to fix.
2018-09-08 22:08:34 +00:00
Maxim Biro
1a6e8b908b
Fix login issue on Travis-CI FreeBSD build
2018-09-01 06:35:17 -04:00
Maxim Biro
53c1989eba
Fix FreeBSD VM on Travis not shutting down
2018-08-27 01:50:47 -04:00
iphydf
0935aab927
Run all tests (and compilation) in parallel with autotools.
...
With distcheck, it's all or nothing, so we build with -j50 and run tests
with -j50.
2018-08-25 14:16:30 +00:00
iphydf
46b48f06ed
Always print output on failure in cmake tests on Travis.
...
Not only the second time it fails.
2018-08-21 17:52:56 +00:00
iphydf
2b73b6298b
Run project tests like yamllint_test.
...
We check that:
* The license is GPLv3.
* .travis.yml conforms with the toktok style specification.
* There exists a README.md file.
2018-08-21 17:31:22 +00:00
iphydf
0e7cc197f4
Upload coverage to codecov as well as coveralls.
2018-08-19 22:37:05 +00:00
iphydf
fc34fee59a
Use --config
to tell bazel about the environment.
...
Instead of importing a well-known file. This gives toktok-stack more
freedom in where and how it wants to define its interface, as long as it
provides the configurations requested ("linux" and "clang").
2018-08-14 20:34:24 +00:00
iphydf
3e3a8810af
Use tokstyle in the cmake travis build.
...
This checks that (some of) the code follows some simplicity and naming
guidelines set by the tool.
2018-08-13 17:27:08 +00:00
iphydf
b3036c55a6
Stop running tests in the bazel build.
...
These always fail at present. We'll need to look into making them not
always fail so we can enable them and get some useful signal from them.
2018-08-12 17:04:07 +00:00
iphydf
f627a26a7b
Run Clang global static analysis on Travis.
...
This uses a single .cc file containing almost all the code in the
repository to perform whole program analysis.
2018-07-22 02:34:30 +00:00
iphydf
9eacfafff7
Set C++11/C99 flag manually in older cmake on not-msvc.
...
These flags are needed so the code actually compiles, so can't only be
set on Travis.
2018-07-15 23:01:32 +00:00
Maxim Biro
c0b4cd156f
Simplify Travis-CI FreeBSD build
2018-07-15 18:37:10 -04:00
iphydf
2377cac94b
Use named function types for group callbacks.
...
Also some other cleanups. This PR means that future PRs, i.e. the PGC PR,
must not break the rules established here.
2018-07-12 21:15:51 +00:00
iphydf
0b7e29e019
Add the bazel build as one of the PR-blocking builds.
2018-07-10 16:45:50 +00:00
iphydf
597f23bdd9
Use run_auto_test.h test fixture for some auto-tests.
...
Most of the auto-tests should use this fixture, but I've only done a few
to set an example.
2018-07-05 23:41:27 +00:00
iphydf
1a54be06cd
Simplify Travis CI builds.
...
Have one script per build. This means more duplication between the
scripts, but it's much easier to understand and to run locally.
2018-07-01 08:35:44 +00:00