26 Commits

Author SHA1 Message Date
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
17706a4f94
.travis/after_success.sh: upload combined coverage data to codecov.io for each build
Previously we were using a separate Travis build that only run coverage with a single Python version (3.5).
Now, we run coverage with all python versions, and upload a combined coverage data to Codecov.io.
2016-12-26 18:35:20 +00:00
Cosimo Lupo
b48129cb9d
.travis/before_deploy.sh: no longer activate virtual env; pip install wheel
Note that we already update setuptools (for the sdist) in .travis/install.sh
2016-12-25 18:09:32 +00:00
Cosimo Lupo
2edbed92f8
.travis/run.sh: use pyenv only on osx; run tox as module 2016-12-25 18:09:10 +00:00
Cosimo Lupo
dcf246a356
.travis/install.sh: simplify; drop jython; don't use pyenv on Linux, use default Travis pypy
Since tox already creates its own test environment, so there's no need to create another virtual environment to install tox into.
This simplifies things a bit.
2016-12-25 18:08:29 +00:00
Cosimo Lupo
4f6147460d
remove versioneer (see discussion at #767) 2016-12-14 12:14:43 +00:00
Cosimo Lupo
df73cc5b32
[travis] always do git fetch --unshallow to get tags for computing version
Otherwise some tests that checks for the version string may fail:
https://travis-ci.org/fonttools/fonttools/jobs/172478473#L1155
2016-11-02 09:33:19 +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
941234c93d [travis] test on latest PyPy 5.4.1 2016-10-14 17:43:05 +01:00
Cosimo Lupo
728774587d [travis] also deploy to Github Releases on tags 2016-09-27 16:36:19 +01:00
Cosimo Lupo
690b0efb0e .travis/run.sh: if $BUILD_DIST is true, do git fetch --unshallow
Else Travis only clones the last 50 commits, and `git describe` doesn't work.
2016-09-27 00:04:14 +01:00
Cosimo Lupo
3d8044ab92 travis: install latest python versions 3.4.5, 3.5.2 and pypy-5.3.1
remove unused py33 case
2016-08-19 10:04:39 +01:00
Cosimo Lupo
edb9c721ae travis: get pyenv from upstream repo
Jython 2.7.1b3 can now be downloaded from the official yyuu/pyenv repository.

https://github.com/yyuu/pyenv/pull/577
2016-04-15 16:56:13 +01:00
Cosimo Lupo
834150b316 travis: only install pytest and don't run jython inside virtualenv
https://travis-ci.org/anthrotype/fonttools/jobs/123273641

When I do `pip install -r dev-requirements.txt` from within a virtual env,
jython sits for 3-4 minutes doing nothing, then the Travis shell exits with this cryptic error:

/usr/bin/env: python2.7: Argument list too long
2016-04-15 10:19:23 +01:00
Cosimo Lupo
a1c962dd2e travis: use pyenv fork to download latest jython beta that fixes pip issues
We shall roll back to the upstreaam pyenv once the PR https://github.com/yyuu/pyenv/pull/577 is merged
2016-04-15 10:19:22 +01:00
Cosimo Lupo
af35faeb2f travis: just call py.test in jython, as tox doesn't work; ignore test failures for now 2016-04-15 10:19:22 +01:00
Cosimo Lupo
0549eb0d57 travis: try using jython 2.7.1b2; don't install from requirements.txt on Jython to avoid RuntimeError
I don't know why but when I `pip install -r requirements.txt` on Jython,
it always raises a Java StackOverflowError.
If I install the deps individually, it works...

$ pip install -v -r dev-requirements.txt
Exception:
Traceback (most recent call last):
  File "fonttools-jy271b2/Lib/site-packages/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
  File "fonttools-jy271b2/Lib/site-packages/pip/commands/install.py", line 285, in run
    self.populate_requirement_set(
  File "fonttools-jy271b2/Lib/site-packages/pip/basecommand.py", line 286, in populate_requirement_set
    for req in parse_requirements(
  File "fonttools-jy271b2/Lib/site-packages/pip/req/req_file.py", line 89, in parse_requirements
    for line_number, line in lines_enum:
  File "fonttools-jy271b2/Lib/site-packages/pip/req/req_file.py", line 323, in ignore_comments
    for line_number, line in lines_enum:
  File "fonttools-jy271b2/Lib/site-packages/pip/req/req_file.py", line 298, in join_lines
    if COMMENT_RE.match(line):
RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)
2016-04-15 10:19:22 +01:00
Cosimo Lupo
f8b309a28d travis: use pyenv to install Jython 2.7.0 2016-04-15 10:19:22 +01:00
Cosimo Lupo
893d5d795a travis/run.sh: simplify 2016-04-11 02:20:19 +01:00
Cosimo Lupo
573cf4c266 travis/install.sh: don't use brew to install pyenv on OS X as it's too slow; just clone from git like in Linux 2016-04-11 02:19:44 +01:00
Cosimo Lupo
0be1d722dc test on more recent pypy-5.0.0 (the latest one is 5.0.1 but is not yet available to install via pyenv) 2016-04-08 22:04:28 +01:00
Cosimo Lupo
3495029726 [.travis/install.sh] pip install from dev-requirements.txt 2016-02-07 01:19:45 +00:00
Cosimo Lupo
8d4f59b4c3 .travis/install.sh: install pyenv only if it isn't already 2015-12-12 19:28:58 +00:00
Cosimo Lupo
da981c754e .travis/run.sh: shell script to activate virtual environment and run tox 2015-12-12 19:28:58 +00:00
Cosimo Lupo
c6c1a96136 .travis/install.sh: shell script to install pyenv (used to install various Pythons); install virtualenv and tox 2015-12-12 18:11:59 +00:00