forked from VKCOM/YouTokenToMe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (61 loc) · 1.75 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
notifications:
email: false
language: python
os: linux
dist: xenial
jobs:
include:
- stage: lint
name: "Black"
language: python
python: "3.7"
install: pip install black
script: black --check youtokentome
- stage: test
name: "Python unit tests"
language: python
python: "3.7"
install:
- pip install -r requirements.txt
- python setup.py install
script:
- cd tests/unit_tests
- pytest
- stage: build
name: "Linux wheels building"
services:
- docker
language: python
python: "3.7"
env:
- CIBW_SKIP="cp27-* pp27-* pp36-* pp37-* cp33-* cp34-* cp35-* *win* *i686*"
- CIBW_MANYLINUX_X86_64_IMAGE=manylinux2010
- CIBW_BEFORE_BUILD="pip install -r requirements.txt"
- name: "macOS wheels building"
os: osx
osx_image: xcode11.2
language: shell
compiler: clang
env:
- MACOSX_DEPLOYMENT_TARGET=10.14
- CIBW_SKIP="cp27-* pp27-* pp36-* pp37-* cp33-* cp34-* cp35-* *win* *i686*"
- CIBW_MANYLINUX_X86_64_IMAGE=manylinux2010
- CIBW_BEFORE_BUILD="pip install -r requirements.txt"
- CXX="g++"
- CC="gcc"
before_install:
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- python3 get-pip.py
install:
- python3 -m pip install -U pip
- python3 -m pip install cibuildwheel==1.7.3 twine==1.15.0
- python3 -m pip install -r requirements.txt
script:
- cibuildwheel --output-dir wheelhouse
- ls -l wheelhouse
- python3 -m pip list
- |
if [[ $TRAVIS_TAG ]]; then
rm -rf dist && python3 setup.py sdist
twine upload -u __token__ -p $PYPI_TOKEN --skip-existing dist/*.tar.gz wheelhouse/*.whl
fi