66 Commits

Author SHA1 Message Date
Cosimo Lupo
139030e1fb
travis/appveyor: only build from master or wip/* branches 2018-10-29 19:50:11 +00:00
Cosimo Lupo
88b6688fbd
tox: remove unnecessary 'nocov' factor
tox now allows to use exclamation mark to negate an environment factor.
2018-10-18 15:40:32 +01:00
Cosimo Lupo
d221b0439e
travis: sudo fals is default
https://docs.travis-ci.com/user/reference/overview/#virtualisation-environment-vs-operating-system
2018-10-16 17:22:49 +01:00
Cosimo Lupo
70c2f88187
Revert "travis: sudo is no longer required for python3.7 env"
This reverts commit 6c1537dafd89ba7d1b3fd5227d413fe45e322516.

Does not quite work yet without sudo. not sure why.
Let's keep it in.
https://twitter.com/cosimolupo/status/1052139428418899968
2018-10-16 11:09:49 +01:00
Cosimo Lupo
6c1537dafd
travis: sudo is no longer required for python3.7 env
https://github.com/deadsnakes/travis-ci-python3.7-example#update-2018-07-03
2018-10-16 11:01:37 +01:00
Cosimo Lupo
ac9790ca89
travis: 'brew install python' on macOS, use generic py3 tox env
formula is now named just 'python'.
For the homebrew version installed on Travis (which we don't
autoupdate) we *should* get python3.6 with this currently.

It might be the case that python3 is already installed on
Travis macOS image, but need to check.

We call tox with 'TOXENV=py3' so that when Travis updates its homebrew,
we'll get python3.7 automatically.

Finally, use virtualenv instead of venv on mac to fix tox bootstrapping issue

https://github.com/pypa/virtualenv/issues/1051
https://github.com/pre-commit/pre-commit/issues/631
https://travis-ci.org/fonttools/fonttools/jobs/427582922#L214

fixup
2018-09-12 12:09:43 +02:00
Cosimo Lupo
056bd7d967
[travis] use twine to upload to PyPI 2018-09-11 12:09:50 +02:00
Cosimo Lupo
9424f61453
[travis] update encrypted PyPI password 2018-09-10 17:19:08 +02:00
Cosimo Lupo
6f94e2ce23
travis: remove python3.4, add python3.7 2018-07-24 12:22:15 +01:00
Cosimo Lupo
aff3ceedc3
[travis] exclude the default python from build matrix
whatever Travis...
2018-01-24 16:48:07 -08:00
Cosimo Lupo
8f8b76cfe3
[travis] fast_finish + allow_failures for OSX builds
Travis CI has been experiencing maintainance problems with the OSX infrastructure
and it has become too slow. It's better we temporarily enable 'allow_failures'
in combination with 'fast_finish' for the OSX builds, so that the CI goes green
as soon as the other builds have completed.
2018-01-24 16:42:02 -08:00
Cosimo Lupo
b0bf3ce4f5 [travis] new xcode8.3 default image has python3.6
should fix build failure
https://travis-ci.org/fonttools/fonttools/jobs/308934694
2017-11-29 13:19:09 +00:00
Cosimo Lupo
189d158887 [travis/tox] check syntax of reStructuredText before release
I pushed a NEWS.rst with broken indentation, the PyPI page will
display plan text garbage.

Next time I'll use docutils and do `python setup.py check
--restructuredtext` before pushing a new tag.

Also, I forgot to update .travis.yml to build the dist packages
on python3.6 instead of 3.5 after I modified the tox.ini, so
the automatic release from Travis failed.

This time I had to use twine tool to upload the zip and whl
packages from my local machine to PyPI.

Sorry the mess...
2017-11-21 13:04:12 +01:00
Cosimo Lupo
6fb4153c8d [travis] don't run coverage for python 2.7.6
as it does not change from the other 2.7 build
2017-10-20 12:19:04 +02:00
Cosimo Lupo
b2cd8178dd [travis] export a different PYENV_ROOT
https://travis-ci.org/fonttools/fonttools/jobs/290377841#L506
2017-10-20 12:02:21 +02:00
Cosimo Lupo
78eb7ebc5d [travis] also test on python 2.7.6
We install python 2.7.6 using pyenv.

This should help us catch issues like this earlier
https://github.com/fonttools/fonttools/issues/993
2017-10-20 11:47:31 +02:00
Cosimo Lupo
323bddad59 [travis] test on python 3.5 instead of 3.6 on osx
That's the one which is installed with `brew install python3` when
we don't update Travis' homebrew.

3.5 is good enough, we already test 3.6 on Linux anyway, and most
developers run test locally on their macs with python3.6 anyway
2017-10-16 11:22:35 +02:00
Cosimo Lupo
fba91d4f58 [travis] disable homebrew auto-update to speed up osx build
export HOMEBREW_NO_AUTO_UPDATE=1

https://github.com/Homebrew/brew/blob/master/Library/Homebrew/manpages/brew.1.md.erb#L194-L196
2017-10-16 11:08:00 +02:00
Cosimo Lupo
b110d9d624 Revert "[Travis] simply comment-out osx python3.6 build"
This reverts commit d4af7c84c01af8f89bcd8a7c0ea83462b7249ace.
2017-10-12 15:32:48 +01:00
Cosimo Lupo
d4af7c84c0 [Travis] simply comment-out osx python3.6 build
I gave up.. too complicated to configure 'allow_failures' without
messing things up.
2017-10-09 14:11:46 +01:00
Cosimo Lupo
1d9305dc08 Revert "[Travis] temporarily let osx python3.6 build fail"
This reverts commits 3693309c651e07f90a95157ec097f81fb6a7def5,
eba71efeecc2702081fb17c6091f70bf0545108f and 5ae9ce60c6a122f27d001fa7beebde3a8e0e98d1.
2017-10-09 14:08:18 +01:00
Cosimo Lupo
5ae9ce60c6 [Travis] still fiddling with .travis.yml...
https://travis-ci.org/fonttools/fonttools/builds/285560888
2017-10-09 14:04:07 +01:00
Cosimo Lupo
eba71efeec [Travis] fix syntax error in .travis.yml 2017-10-09 13:54:40 +01:00
Cosimo Lupo
3693309c65 [Travis] temporarily let osx python3.6 build fail
until the issue with Travis/Homebrew is fixed

https://github.com/fonttools/fonttools/issues/1068
2017-10-09 13:47:19 +01:00
Cosimo Lupo
5224662dc1 [Travis] enable fast_finish
With "fast_finish" enabled, Travis CI will mark builds as finished
as soon as a job has already failed (or the only remaining ones are
allowed to fail).

https://blog.travis-ci.com/2013-11-27-fast-finishing-builds/
2017-10-03 11:40:48 +01:00
Cosimo Lupo
03064b60c4 [travis] run tests on latest pypy2.7-5.8.0 2017-07-24 16:48:04 +01:00
Cosimo Lupo
9c3e499d2a
[travis] test on more recent pypy-5.3.1
Travis CI workers now come with a more up-to-date pypy.
2017-05-30 14:00:38 +01:00
Cosimo Lupo
61ab1e7f6d
build sdist/wheel only once for both Github and PyPI
This makes sure we upload the same files to Github Releases and PyPI.

Currently we were building them twice, with the risk of different files
being uploaded to the two repositories.
2016-12-26 19:36:08 +00:00
Cosimo Lupo
4fcbebcb38
.travis/*.sh: use homebrew python3 instead of compiling python3 from source with pyenv
This should speed it up a bit, as brew will download a pre-compiled "bottle", whereas pyenv compiles python from source.

The current 'python3' formula on homebrew is 3.6.0, so let's use that.
2016-12-26 18:38:37 +00:00
Cosimo Lupo
c65a6548bd
.travis.yml: run tests with coverage for all pythons, not just 3.5
Running coverage.py on pypy takes twice as long, not worth it.
2016-12-26 18:32:25 +00:00
Cosimo Lupo
6125d0190d
.travis.yml: add Python 3.6; remove Jython 2016-12-25 18:07:35 +00:00
Cosimo Lupo
2611ec2cff
[travis] only make dist in before_deploy stage; use 'file_glob' to get files for Github Releases 2016-11-02 09:30:18 +00:00
Cosimo Lupo
30799bb6df [travis] also drop 3.4 for OSX; only run 2.7 and 3.5 2016-10-14 18:07:17 +01:00
Cosimo Lupo
e4a3d4aba4 [travis] don't test on OSX pypy any more
I believe it's enough to test pypy implementation only on Linux.
We don't really need to also test it in on OSX, as fonttools is a pure python project so it should just work there as well.
Travis CI has just become too slow...
2016-10-14 17:41:22 +01:00
Cosimo Lupo
f6362b0ebf Revert ".travis.yml: also test with built-in Python 2.7 on OSX 10.11"
This reverts commit a63e1ed5d37797ee361b0a23d09bf8a03aaee23d.

The default OSX Travis worker is now osx10.11-xcode7.3 so we don't need to separately test the latter as it's now default.

Also, since the OSX are getting quite slow lately, we can't afford to test two different python2.7 on OSX; so from now on we just test the system Python 2.7.11 that comes with El Capitan (so no more 2.7.5 on Mavericks).
2016-10-14 17:31:16 +01:00
moyogo
fbbc344556 appveyor, travis: use fonttools-dev@googlegroups.com 2016-09-27 20:52:09 +01:00
Cosimo Lupo
728774587d [travis] also deploy to Github Releases on tags 2016-09-27 16:36:19 +01:00
Cosimo Lupo
0f7bc8f710 .travis.yml: define $BUILD_DIST environment variable on Python 3.5 (Linux) 2016-09-27 00:04:14 +01:00
Cosimo Lupo
375785ca2a .travis.yml: re-generate encrypted secure PyPI password to fix Travis dpl raising HTTPError 401
https://travis-ci.org/behdad/fonttools/jobs/162925225#L2712
2016-09-26 23:26:36 +01:00
Cosimo Lupo
b6ab441a1a .travis.yml: drop Python 3.3 support 2016-08-06 19:29:35 +01:00
Cosimo Lupo
900a250896 .travis.yml: enable automatic PyPI deployment from Travis upon tags 2016-08-06 13:10:52 +01:00
Cosimo Lupo
ce15359dc4 travis: set 'osx_image' to 'xcode7.3' instead of 'osx10.11'
https://docs.travis-ci.com/user/languages/objective-c#Supported-Xcode-versions
2016-04-28 15:39:59 +01:00
Cosimo Lupo
f8b309a28d travis: use pyenv to install Jython 2.7.0 2016-04-15 10:19:22 +01:00
Cosimo Lupo
215ab5bec3 travis.yml: add 'coveralls' tox environment to the matrix (use py35 on Linux) 2016-04-11 01:11:01 +01:00
Cosimo Lupo
258e53044d Revert ".travis.yml: temporarily disable py27-osx10.11 until pip installation issue is fixed"
This reverts commit 15392729ae9800a29bc04649d48c08093b67ec95.

Fixes #473.
2016-01-22 12:02:45 +00:00
Cosimo Lupo
15392729ae .travis.yml: temporarily disable py27-osx10.11 until pip installation issue is fixed
https://github.com/pypa/pip/issues/3392
2016-01-20 10:07:41 +00:00
Cosimo Lupo
a63e1ed5d3 .travis.yml: also test with built-in Python 2.7 on OSX 10.11 2015-12-12 19:28:59 +00:00
Cosimo Lupo
c5b96cfe98 .travis.yml: run tox command using run.sh script 2015-12-12 19:28:58 +00:00
Cosimo Lupo
bcc95eebfa .travis.yml: run tests on both Linux and OSX; use tox to setup virtual env and install deps, and pytest to discover/run tests 2015-12-12 18:11:59 +00:00
Cosimo Lupo
59ddee620e .travis.yml: switch container-based infrastructure; don't install gcc++ 4.8 as it requires sudo 2015-12-09 12:57:25 +00:00