Commit Graph

33 Commits

Author SHA1 Message Date
Brian Warner
c15d706faf travis: Disable coverage on OS-X build, times out
refs ticket:2800
2016-07-21 15:07:46 -07:00
Brian Warner
5bf7fab99d travis: big cleanup, make it work on OS-X
Travis defaults to giving us an OS-X 10.9 box, which has an OpenSSL that
is too old for the current cryptography-1.4 (note that a previous
version of this branch worked, but only because the previous
cryptography-1.3.x didn't enforce the OpenSSL version).

On OS-X, this new .travis.yml does the following:

* set "osx_image: xcode7" to get us 10.10, with newer OpenSSL
* uses system python, not homebrew
* installs pip with get-pip.py, since system python doesn't have it
* adds the --user directory to $PATH, since OS-X python doesn't have it
  by default

On both linux and OS-X, this:

* installs tox and coveralls with --user, not to the system
* doesn't use sudo to run tox
* prints some extra debug info in case it's useful later

Closes 
2016-07-06 02:05:43 -07:00
David Stainton
7e10b5d0e5 Corrections to .travis.yml from Brian's review 2016-07-06 02:00:41 -07:00
David Stainton
73c4aa727f wtf sudo tox for linux 2016-07-06 02:00:41 -07:00
David Stainton
8a374df8b1 Make travis test on osx and linux both 2016-07-06 02:00:41 -07:00
Brian Warner
e3aef2b966 travis.yml: use tox, with 'coverage' environment 2016-05-09 14:40:48 -07:00
Brian Warner
23f871a409 add [test] "extra" to install testing-only dependencies
closes ticket:2776
2016-04-12 12:32:46 -07:00
Brian Warner
c8edddb31b travis: enable cache, should speed up builds a lot
This will allow travis builders to cache generated wheels between
builds, so all the dependencies don't have to get re-built every time.
2016-03-15 18:41:59 -07:00
Daira Hopwood
23025ddc51 Travis build fixes.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-03-15 17:31:32 +00:00
Leif Ryge
000c148ad8 drop Python 2.6 (.travis.yml, doc, setup.py)
Twisted 15 dropped support for it, which causes Travis CI tests to fail on 2.6.
We still theoretically support older versions of Twisted, so perhaps we should
configure Travis to test with those? I think we should drop Python 2.6 in any
case since distros are all on 2.7 now.

I'm leaving Travis running (and ignoring) the failing PyPy tests because I
don't know why that is there.
2015-12-02 20:18:33 +00:00
Brian Warner
98732cd12c .travis.yml: unpin coverage, current one ought to work
refs ticket:2511
2015-10-16 21:52:39 -07:00
Daira Hopwood
4c55e68ff8 .travis.yml: pin coverage version to 3.7.1. fixes ticket:2511
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-10-01 01:11:14 +01:00
Brian Warner
759e87b24b travis: use 'git fetch' to deepen, not 'git pull'
Travis builds of branches (i.e. pull-requests) were testing the wrong
thing, because the 'git pull' was causing current trunk to be
auto-merged. At least that's what seemed to break
https://travis-ci.org/tahoe-lafs/tahoe-lafs/jobs/81517826 : it hung
forever waiting for a commit message to be entered.

Also add "sudo: false" to use travis containers (faster) instead of new
VMs. We only use pip to install dependencies, not apt, so we don't need
root.
2015-09-22 12:10:15 -07:00
HawkOwl
8fc59499af add a pypy that is allowed to fail 2015-07-29 12:21:31 +10:00
Daira Hopwood
53fc7da2ab .travis.yml: emove 'sudo: false' as requested by https://github.com/travis-ci/travis-ci/issues/2389#issuecomment-76202191
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-02-27 23:59:18 +00:00
Daira Hopwood
ce7a867b22 .travis.yml: add "sudo: false" option, to attempt to resolve "Connection reset by peer" problems during build.
See https://github.com/travis-ci/travis-ci/issues/2389 .

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-02-07 02:45:10 +00:00
Brian Warner
118d78a67d Revert "Enable DeprecationWarnings for Travis-CI even on Python 2.7. refs "
This reverts commit cec7727bf9.

It caused travis (for py2.7) to fail on these tests:

* allmydata.test.test_runner.BinTahoe.test_version_no_noise
* allmydata.test.test_runner.RunNode.test_client_no_noise
* allmydata.test.test_system.SystemTest.test_filesystem_with_cli_in_subprocess
2015-01-26 22:12:00 -08:00
Daira Hopwood
cec7727bf9 Enable DeprecationWarnings for Travis-CI even on Python 2.7. refs
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-01-22 02:49:16 +00:00
Daira Hopwood
4457b97471 Work around a Travis-CI configuration change.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-11-27 16:37:25 +00:00
Daira Hopwood
dff955a46a .travis.yml: remove workaround to install Twisted 13.0 which should no longer be needed.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-10-07 19:11:23 +01:00
Brian Warner
e80f075347 travis: remove the os.statvfs debug command
According to https://github.com/travis-ci/travis-ci/issues/2788 (which
was WONTFIXED), roughly half the travis-ci buildserver fleet runs off
tmpfs volumes, which have different notions of space-free and space-used
than real filesystems. We've adapted our tests to avoid relying upon
space-used>0, and no longer need this call to investigate the problem.

refs ticket:2290
2014-09-29 08:43:20 -07:00
Brian Warner
3a75a75f95 travis: show os.statvfs before build, to investigate 2014-09-12 12:14:29 -07:00
Daira Hopwood
d95b370e81 .travis.yml: okay, fetching just tags apparently isn't sufficient (and this use of 'git pull' won't actually pull any new commits, because we'll be on a detached head).
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-09-02 15:08:58 +01:00
Daira Hopwood
735ec0c2ee .travis.yml: make sure that we only fetch tags and don't change the requested commit. 2014-09-02 14:51:01 +01:00
Daira Hopwood
b7e960a490 .travis.yml: really fix command used for testing.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-09-02 14:51:01 +01:00
Daira Hopwood
37d348ab21 .travis.yml: fix command used for testing.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-09-01 20:57:22 +01:00
Daira Hopwood
9566b3d45c .travis.yml: correct the --source argument to coverage (it should be a directory, not a module name).
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-09-01 18:08:36 +01:00
Daira Hopwood
48fc2fc79a .travis.yml: Make sure that update_version has enough history to see the last release tag.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-09-01 17:47:43 +01:00
Daira Hopwood
05e1341794 .travis.yml: install Twisted explicitly to work around .
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-09-01 16:50:51 +01:00
Daira Hopwood
61371a31df Support coverage reporting via coverage.io. refs
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-09-01 15:29:13 +01:00
Daira Hopwood
40e43694fa Tweak Travis IRC notification settings.
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
2013-09-01 03:03:24 +01:00
Daira Hopwood
ec48bcf1fa Customize Travis notifications.
Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>
2013-09-01 02:49:03 +01:00
Daira Hopwood
b8322c9c53 Add Travis configuration.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2013-09-01 00:45:20 +01:00