forked from tbodt/v8py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (42 loc) · 2.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: python
sudo: true
group: beta
dist: xenial
python:
- 2.7
- 3.5
- 3.6
- 3.7
install:
- sudo apt update && sudo apt install patchelf
- pip install --upgrade pip && pip install twine pytest
# greenstack doesn't build for python 3.7 and above
- python -c "import sys; exit(1 if (sys.version_info.major, sys.version_info.minor) > (3, 6) else 0)" && pip install greenstack; true
# auditwheel is python 3 only, cheat a bit here
- ~/virtualenv/python3.6/bin/pip install auditwheel
- export CC=`pwd`/v8/third_party/llvm-build/Release+Asserts/bin/clang
- export CXX=`pwd`/v8/third_party/llvm-build/Release+Asserts/bin/clang++
- export CFLAGS='-g -O0 --coverage'
script:
- python ./setup.py bdist_wheel
- ~/virtualenv/python3.6/bin/auditwheel show dist/*.whl
- ~/virtualenv/python3.6/bin/auditwheel repair --plat manylinux2014_x86_64 dist/*.whl && rm -rf dist && mv wheelhouse dist
- pip install dist/*.whl
- pytest
- pip uninstall -y greenstack; python -c "import v8py"
# it takes ages to compile v8 so don't do it too often
cache:
directories:
- v8
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: pypi
user: tbodt
password:
secure: TeSSoX1sjprFbi3BbK7vDNVXzM/nSxxbcVyxF0Itvu0jqSWQhcRvtEr74wdW4nTyNTBxlfY1+HbDqwvNeADb+kyaQdlzlR/zQ2V3GCQ5muN0R8Lslfi+EI5rMf/h1pNuPxSm6yYA4qogN3QMEY9CiUgOmSG7RGsAXtgMLR48h9qQ0UNCTW/DqozKFD5HIi8os0HoURFtJRPafXLsRbJS8StRZmEjQDvsrfcMYxwlLsNikbfSR8TvBbztEum4mi5OqLl9Jbz0QH4sqfxhouvikXDxZlWYMdPZOuEzXBfDrMWCJXGIekSbQQ14N/j2PDDjNTVF4/88Z25dleqHj2F8+e0Fm7YVlyCNYNylwCjcB9zBkVc1QcAtn2dEpyPXjjsDTIoSNgmRNqaabCSLLUePzHxWnIm/P9leMpu8fCEofHptPV+GEOK1csVspKzi7xZT1fbXQlF0TsExPpv3RN390J7SrVJ2lZOVYn8jiJ1AMc9pWIRuC4blHTkYiZFyVsdqCcwMyMLpoTsSrH4WI/tts3o6Rp+FZmENf2cxtW267XThMjHZxvH9BOd+6EKcBruKV1ux7+ObQZmpCrV4KBPShUukMyruA/R6fvXsAlD70AUPj/cyCHB6HszyYrFarCckgUPaUtWa3IUWgMzyEI5inyllj+cxcm9c65WsObY+Ico=
on:
tags: true
repo: tbodt/v8py
distributions: sdist
skip_upload_docs: true