Commit Graph

60 Commits

Author SHA1 Message Date
iphydf
81d5c22502
Don't use git.depth=1 anymore. 2017-01-07 21:50:20 +00:00
iphydf
08cd61387e
Add an OSX build that doesn't run tests.
This one is not allowed to fail and ensures that toxcore can at least be
built for OSX.
2017-01-06 00:40:29 +00:00
iphydf
535b8238fd
Only fetch 1 revision from git during Travis builds. 2017-01-04 18:03:31 +00:00
Gregory Mullen (grayhatter)
fba3bfa7a4 TravisCI shorten IRC message 2016-10-30 21:04:54 +00:00
iphydf
fd50660f40
Allow the OSX build to fail on travis.
Given that it fails about 80-90% of the time, it's not worth requiring
it to pass. Instead, we'll need to manually look at the osx build to see
in what way it failed.

Also, set `fast_finish` to true, since OSX regularly has multi-hour (up
to half a day) outages that can't block us for trivial code changes or
non-code changes.
2016-09-22 14:46:51 +01:00
iphydf
e59fd26d49
Add OSX and Windows build to travis config.
Tests for Windows are disabled for now, until we figure out which tests
can successfully run on wine and select only those.
2016-09-20 13:52:33 +01:00
iphydf
37c041f815
Clean up Travis build a bit in preparation for osx/win. 2016-09-16 11:22:23 +01:00
iphydf
2db31d95fd
Use "phase" script for travis build phases.
This is the first step towards unifying travis configs for toxcore,
hstox, and qtox.
2016-09-11 22:13:47 +01:00
iphydf
6356eb4e4f
Enable build of av_test.
It has not been built in a while. We do want to keep this one working (or at
least compiling).
2016-08-31 20:02:41 +01:00
iphydf
35932b5381
Add "make install" step to Travis build. 2016-08-12 20:49:50 +02:00
iphydf
b5cfd33340
Add and use CMake build script
Also, fix the hstox build that was taking half an hour. It now takes 5 minutes.
Also, perform distcheck on travis to ensure that make dist works. It's not
actually failing the build at the moment due to broken tests.
2016-08-12 01:13:11 +01:00
iphydf
459f8f2013
Check code formatting on Travis.
We run astyle on Travis and check if there is a diff. The build terminates if
git finds a difference.
2016-08-12 01:00:00 +01:00
iphydf
8339e3449f
Run hstox test suite against toxcore on Travis. 2016-08-12 00:22:09 +01:00
iphydf
50921070ce
Move toxcore travis build scripts out of .travis.yml.
This is in preparation for having multiple types of build. One of the future
builds will be a hstox build, another may be frama-c or some other static
analyser. It makes sense to split these up into multiple builds, because each of
them can take a while, and running them in parallel will speed things up. Also,
the hstox test coverage should be reported separately from the toxcore auto_test
coverage.
2016-08-12 00:07:05 +01:00
Gregory Mullen (grayhatter)
6f3e689eeb
Fix a few issues with running Toxcore tests on Travis-CI
> increased the timeout for TCP tests because per @irungentoo the network on Travis-CI can be slow sometimes

> allowed groupchats test to restart on error until timeout This had to be done because current groupchats are fundamentally broken and 3/5 times they'll 'net-split' on connect

>> Drop group chat tests, add comment to the reason

> added some debugging information to TCP tests, and a #define to force IPV6 (Travis-CI only uses IPv4 on their containers) and decreased the itr interval

> Went crazy with timeouts for Tox network stuff on Travis. Tests on TCP will still randomly fail due to timeouts. I can't reproduce on any local system. So again per @irungentoo, Travis is slow, let's offer it a short bus.
2016-08-11 14:41:57 -07:00
iphydf
7dab0400a8
Enable toxcore logging when building on Travis.
The logging code is rarely tested by users, so we use Travis to exercise it.
2016-07-07 20:53:49 +01:00
iphydf
83f525886a
Start recording test coverage and move to ubuntu precise.
- We use coveralls.io to report on test coverage and avoid getting below a
  certain threshold. The threshold is currently 60%, but we will be increasing
  it when it stabilises.
- We use gcc/clang -ftest-coverage and gcov to measure C test coverage.
- We switched to container based Travis build infrastructure, which has the
  advantage of faster boot times[1] (1-6s vs. 20-52s). The trusty beta supports
  caching, but the longer boot times make it an unattractive target.
- We now need to build more dependencies ourselves and cache the result. We
  still fetch what we can (currently opam, libvpx, and check) from apt.

[1] https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
2016-07-07 12:45:55 +02:00
Maxim Biro
41046e2eef Added check of whether tox.h or toxav.h were edited directly
tox.h and toxav.h must be generated by apidsl instead of edited directly.
2016-03-07 14:35:09 -05:00
Maxim Biro
e4f86e2485 Update Travis script
Reduces the running time from about 8 minutes to about 5, as it uses
packaged libraries instead of building them. This is possible because
of the Ubuntu Trusty becoming available on Travis. The new check that
is in Trusty has different behaviour than the previously user version
of it -- it doesn't output the detailed result of tests. To fix this
we cat a file where this detailed result is stored.
2016-01-24 01:38:20 -05:00
irungentoo
4b9425fc6c
Fixed travis. 2015-06-14 21:48:10 -04:00
Urras
15f228a855
Travis should build Tox with Libsodium stable 2015-02-03 09:52:52 -05:00
Dubslow
9748dc4317 fix travis sodium version 2014-09-05 05:53:05 -05:00
irungentoo
95e896a52e
Added warnings to travis building. 2014-06-10 19:02:43 -04:00
AZ Huang
7f3e1aec52 Fix libtoxav link error. 2014-03-05 20:04:19 +08:00
Maxim Biro
44c1dfc5fd Enable nTox in Travis 2014-02-22 17:05:12 -05:00
Maxim Biro
9b1de38b60 Make Travis build bootstrap daemon again 2014-02-22 16:54:33 -05:00
mannol
bc61d969e0 Apparently libvpx needs yasm 2014-02-19 23:27:38 +01:00
mannol
efb070df9f Removed user agent header from msi and updated travis build stuff 2014-02-19 23:12:36 +01:00
mannol
7395bacd88 Stupid mistake 2014-02-18 22:07:18 +01:00
mannol
b267a36519 No need for libconfig in travis 2014-02-18 22:05:48 +01:00
mannol
186c852aa6 Ugh 2014-02-18 00:35:26 +01:00
mannol
99b1b108dc This should install vpx 2014-02-16 19:11:55 -05:00
irungentoo
d945489aef This might help travis pass the CPU intensive tests.
Gotta go fast.
2013-12-19 10:12:43 -05:00
Sean
05a05400ed echo is useless 2013-11-20 13:40:16 -08:00
Sean
c34e68eacb Fixed "'" 2013-11-20 13:36:13 -08:00
Sean
96fd7ef327 Fixed that 2013-11-20 13:23:49 -08:00
Sean Qureshi
d72613e28a No one actually gives a shit about seeing this, so lets actually be able to see useful stuff 2013-11-20 13:05:29 -08:00
mannol
5bc2560904 tox A/V: integration of A/V code into tox
Also-by: Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
2013-10-13 16:40:15 +02:00
irungentoo
d03ddda7c1 Removed useless line from travis. 2013-08-31 12:03:19 -04:00
jin-eld
fb26fe4455 Add "make dist" to travis
this should allow us to catch build system errors related to removing or adding
source files
2013-08-30 02:24:14 +03:00
jin-eld
974b8fb8bf Move travis build to autotools 2013-08-24 03:25:08 +03:00
jin-eld
50c8a820e5 Implemented autotools based build scripts
supported options:

--with-dependency-search=DIR    will tell configure to look for various
dependencies in DIR/include and DIR/lib

Alternatively you can also specify libsodium header and libs location
with --with-libsodium-headers and --with-libsodium-libs if it is
installed elsewhere.

Ncurses and libconfig are handled via the default pkg-config way, see
./configure --help=short for detailed information.

The tox library is compiled as libtoxcore in shared and static variants,
public headers are installed to ${prefix}/include/tox

A pkg-config libtoxcore.pc configuration file is provided.

Use ./configure --help for a full list of configure options or
./configure --help=short for the options that I added.

To generate the configure script after pulling from git use:
autoreconf -i

To generate a release tarball use:
make dist

Unit tests are handled by the libcheck library integration that is provided
by autotools, use:
make check

to compile and run the tests.

Unit tests are currently optional, i.e. - if the check library is not
found on the system, then tests will be disabled. Same goes for nTox and
DHT bootstrap daemon - they will be enabled or disabled depending on the
availability of ncurses (for nTox) or libconfig (for DHT bootstrap
daemon).

The above can be also tuned by:
--enable-tests / --disable-tests
--enable-ntox / --disable-ntox
--enable-dht-bootstrap-daemon / --disable-dht-bootstrap-daemon
2013-08-24 03:25:07 +03:00
Florian Hahn
50214c5406 Run unit tests with travis 2013-08-08 13:04:48 +02:00
charmlesscoin
8b47b6166e jesus, I'm going to sleep after this commit 2013-08-07 18:46:48 -04:00
charmlesscoin
8649f86b10 removed script changes so _this_ build will pass 2013-08-07 18:30:16 -04:00
charmlesscoin
64b05c0960 Cleanup test and work on .travis file 2013-08-07 04:04:16 -04:00
Florian Hahn
e95ecfc467 Test building docs with travis 2013-08-01 22:35:49 +02:00
irungentoo
c58ffba4f0 Merge branch 'master' into nurupo-master
Conflicts:
	.travis.yml
2013-07-30 18:00:59 -04:00
Maxim Biro
010adbe0ac Modified Travis to build libconfig from sources 2013-07-30 17:58:38 -04:00
Rylai
579fa95df4 travis: use -q instead of -qq to prevent travis from sometimes timing out on long apt-get updates 2013-07-30 15:17:18 -04:00