Commit Graph

37 Commits

Author SHA1 Message Date
iphydf
b004736830
Install libsodium from apt instead of from source. 2020-03-22 11:22:06 +00:00
iphydf
ba95314845
Remove bazel build from Travis.
We already have one on Cirrus, and it works fine.
2020-03-22 01:20:11 +00:00
iphydf
983c2c44fe
Enable remote cache for bazel builds. 2020-03-17 03:21:54 +00:00
zugz (tox)
c644ef7681
use -1 rather than ~0 in unsigned integer types
Using ~0 involves a bitwise operation on int, so depends on
the internal representation of signed integers.
2020-03-14 00:00:02 +00:00
iphydf
64bf3695d9
Add a mutex lock/unlock inside every public API function. 2020-03-11 15:21:43 +00:00
Maxim Biro
26fd89437b
Update and fix FreeBSD setup on Travis-CI
- Bump FreeBSD to 12.1.
- Simplify stage1 logic.
- Re-try downloading the image from a different mirror if one fails.
- Use the `expect` utility instead of dealing with screen's log file.
- Re-run failed toxcore test one more time and in sequence.
2020-03-10 06:16:00 -04:00
iphydf
7923a61959
Use ninja build system for the cmake-linux build. 2020-03-05 23:02:54 +00:00
zugz (tox)
2dc639a8a4
bump to astyle-3.1 in travis build 2020-03-02 15:31:48 +00:00
iphydf
0f7138c010
Upgrade bazel to 2.1.1.
Removed av_test, because it depends on an ancient opencv that starts to
really not exist on modern systems anymore.
2020-03-02 14:23:44 +00:00
iphydf
6bc12232ac
Use (probably?) correct path to test log to cat on error. 2019-01-06 21:03:16 +00:00
iphydf
0f8b5c8255
Display build log for autotools build on failure.
We can't see the failure messages now, so something like "aborted", which
probably means assertion failure, is not very useful right now.

E.g. https://travis-ci.org/TokTok/c-toxcore/jobs/476028600#L1220
2019-01-06 17:25:14 +00:00
iphydf
60cd08e774
Upgrade bazel to 0.19.0 to fix the bazel build. 2018-11-22 21:51:40 +00:00
Maxim Biro
d89f83f8b5
Build tox-bootstrapd on FreeBSD Travis-CI 2018-11-04 20:10:20 -05:00
Maxim Biro
5530e41742
Increase NOFILE limit for tox-bootstrapd
tox-bootstrapd can use around 600 TCP sockets during TCP server's normal
functioning. Many systems default to having a soft limit of 1024 open file
descriptors, which we are close to reaching, so it was suggested we bump that
limit to a higher number. iphy suggested increasing it to 32768.
2018-11-04 20:10:09 -05:00
Maxim Biro
9b98ac1342
tox-bootstrapd's Dockerfile shouldn't use master branch 2018-10-17 14:45:36 -04:00
chrono
17a7bf3fd2
Add AUTOTEST Option to CMakeLists.txt 2018-10-07 22:09:54 +00:00
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